mirror of
https://github.com/luzifer-ansible/users.git
synced 2024-12-23 02:11:17 +00:00
Only create .ssh dir if user is available
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
faba9d132f
commit
2f221d752e
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@
|
||||||
mode: 0700
|
mode: 0700
|
||||||
owner: '{{ item.name }}'
|
owner: '{{ item.name }}'
|
||||||
group: '{{ item.name }}'
|
group: '{{ item.name }}'
|
||||||
|
when: '{{ item.state | default("present") == "present" }}'
|
||||||
with_items: '{{ users }}'
|
with_items: '{{ users }}'
|
||||||
|
|
||||||
- name: Install SSH keys for user
|
- name: Install SSH keys for user
|
||||||
|
|
Loading…
Reference in a new issue