Only create .ssh dir if user is available

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2018-01-21 17:03:52 +01:00
parent faba9d132f
commit 2f221d752e
Signed by: luzifer
GPG key ID: DC2729FDD34BE99E

View file

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