required varaibles / remove append group / blocks in shell

This commit is contained in:
Vincent Van der Kussen 2018-08-26 15:10:15 +02:00
parent c53f502220
commit 59749462c0
8 changed files with 145 additions and 13 deletions

View file

@ -13,7 +13,7 @@
group: "{{ item.item.name }}"
mode: 0600
state: touch
when: item.stat.exists == False
when: item.stat.exists == False and item.item.state == "present"
with_items:
- "{{ sshconfig.results }}"
no_log: True
@ -42,3 +42,4 @@
- "{{ users }}"
- ssh_config
- skip_missing: true
when: item.0.state == "present"