fix: adapt condition
This commit is contained in:
parent
8a45755225
commit
9bdd0cf8ff
@ -133,7 +133,7 @@
|
|||||||
creates: "{{ user_user_home }}/.ssh/{{ item }}.pub"
|
creates: "{{ user_user_home }}/.ssh/{{ item }}.pub"
|
||||||
with_items:
|
with_items:
|
||||||
- "{{ unix_user.value.ssh.private_keys }}"
|
- "{{ unix_user.value.ssh.private_keys }}"
|
||||||
when: unix_user.value.ssh.private_keys is defined and unix_user.value.ssh.private_keys | length >= 0
|
when: unix_user.value.ssh.private_keys is defined and unix_user.value.ssh.private_keys | length > 0
|
||||||
|
|
||||||
- name: "Correct permissions of public SSH keys for unix user: {{ unix_user.key }}"
|
- name: "Correct permissions of public SSH keys for unix user: {{ unix_user.key }}"
|
||||||
ansible.builtin.file:
|
ansible.builtin.file:
|
||||||
|
Loading…
Reference in New Issue
Block a user