1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2025-01-02 03:37:40 +02:00

update playbook

This commit is contained in:
kev 2016-04-07 08:14:41 +08:00
parent f1d2879a57
commit 2dc779a1e6

View File

@ -93,16 +93,19 @@
- block: - block:
- name: update samba config - name: update samba config for global
ini_file: ini_file:
dest: /etc/samba/smb.conf dest: /etc/samba/smb.conf
section: global section: "{{ item.section }}"
option: guest account option: "{{ item.option }}"
value: pi value: "{{ item.value }}"
with_items:
- {section: global, option: guest account, value: pi}
- {section: global, option: netbios name, value: pi}
notify: notify:
- restart samba - restart samba
- name: update samba config again - name: update samba config for share
blockinfile: blockinfile:
dest: /etc/samba/smb.conf dest: /etc/samba/smb.conf
insertafter: EOF insertafter: EOF