2
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-12-21 13:23:02 +01:00

update playbook

This commit is contained in:
kev
2016-04-07 01:06:51 +08:00
parent ed6f165d9a
commit f1d2879a57

View File

@@ -91,19 +91,29 @@
- restart nginx - restart nginx
changed_when: yes changed_when: yes
- name: update samba config - block:
blockinfile:
dest: /etc/samba/smb.conf - name: update samba config
insertafter: EOF ini_file:
content: | dest: /etc/samba/smb.conf
[share] section: global
path = /home/pi/share option: guest account
browseable = yes value: pi
read only = yes notify:
guest ok = yes - restart samba
notify:
- restart samba - name: update samba config again
changed_when: yes blockinfile:
dest: /etc/samba/smb.conf
insertafter: EOF
content: |
[share]
path = /home/pi/share
browseable = yes
read only = no
guest ok = yes
notify:
- restart samba
handlers: handlers: