Fix: Remove deprecated jinja templating in when

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-11-26 13:04:23 +01:00
parent c89ee9836d
commit 67b5351457
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

@ -17,7 +17,7 @@
mode: 0700 mode: 0700
owner: '{{ item.name }}' owner: '{{ item.name }}'
group: '{{ item.name }}' group: '{{ item.name }}'
when: '{{ item.state | default("present") == "present" }}' when: item.state is not defined or item.state == "present"
with_items: '{{ users }}' with_items: '{{ users }}'
- name: Install SSH keys for user - name: Install SSH keys for user