From 2dc779a1e689bfbb8df02409b889fdd2b69b4171 Mon Sep 17 00:00:00 2001 From: kev Date: Thu, 7 Apr 2016 08:14:41 +0800 Subject: [PATCH] update playbook --- aria2/playbook.yml | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/aria2/playbook.yml b/aria2/playbook.yml index 3aac07c..c189e97 100644 --- a/aria2/playbook.yml +++ b/aria2/playbook.yml @@ -93,16 +93,19 @@ - block: - - name: update samba config + - name: update samba config for global ini_file: dest: /etc/samba/smb.conf - section: global - option: guest account - value: pi + section: "{{ item.section }}" + option: "{{ item.option }}" + value: "{{ item.value }}" + with_items: + - {section: global, option: guest account, value: pi} + - {section: global, option: netbios name, value: pi} notify: - restart samba - - name: update samba config again + - name: update samba config for share blockinfile: dest: /etc/samba/smb.conf insertafter: EOF