mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update playbook
This commit is contained in:
@@ -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:
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user