Skip to content
Snippets Groups Projects
Commit 61c1cb6e authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: try to remove outdated SSH keys only if the corresponding user still...

fix: try to remove outdated SSH keys only if the corresponding user still exists (otherwise, the operation would fail because getpwnam() can't find the user)
parent 96854dc5
No related branches found
No related tags found
No related merge requests found
...@@ -20,6 +20,7 @@ ...@@ -20,6 +20,7 @@
- item.value.ssh_key_old is defined - item.value.ssh_key_old is defined
- item.value.ssh_comment_old is defined - item.value.ssh_comment_old is defined
- item.value.ssh_key_old != item.value.ssh_key_current - item.value.ssh_key_old != item.value.ssh_key_current
- item.value.state != "absent"
- name: alle ungültigen SSH-Keys vom Installationsuser entfernen - name: alle ungültigen SSH-Keys vom Installationsuser entfernen
ansible.posix.authorized_key: ansible.posix.authorized_key:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment