projects
/
noc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
793afea
)
base: Use with_dict for editing adduser.conf
author
nicoo
<nicoo@realraum.at>
Wed, 13 Jun 2018 22:29:10 +0000
(
00:29
+0200)
committer
nicoo
<nicoo@realraum.at>
Sun, 17 Jun 2018 10:05:34 +0000
(12:05 +0200)
ansible/roles/base/tasks/main.yml
patch
|
blob
|
history
diff --git
a/ansible/roles/base/tasks/main.yml
b/ansible/roles/base/tasks/main.yml
index
92218ba
..
919b2aa
100644
(file)
--- a/
ansible/roles/base/tasks/main.yml
+++ b/
ansible/roles/base/tasks/main.yml
@@
-139,10
+139,9
@@
shell: /bin/zsh
- name: set default shell for adduser
- with_items:
- - regexp: "^DSHELL"
- line: "DSHELL=/bin/zsh"
+ with_dict:
+ DSHELL: /bin/zsh
lineinfile:
dest: /etc/adduser.conf
- regexp: "{{ item.regexp }}"
- line: "{{ item.line }}"
+ regexp: "^#?{{ item.key }}="
+ line: "{{ item.key }}={{ item.value }}"