fix: adapt condition

This commit is contained in:
Markus Pesch 2024-04-02 10:57:12 +02:00
parent 8a45755225
commit 9bdd0cf8ff
Signed by: volker.raschek
GPG Key ID: 852BCC170D81A982

View File

@ -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: