Skip to content

Commit 3e99730

Browse files
authored
Merge pull request #2 from ansiblebit/develop
2.17.2
2 parents 9ef5bc2 + d883a64 commit 3e99730

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tasks/main.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
- name: setup ssh authorized keys
4848
authorized_key:
4949
user="{{ item.0.name }}"
50-
key="{{ lookup('file', '{{ system_ssh_dir_public_keys }}/{{ item.1.value }}.pub') }}"
50+
key="{{ lookup('file', '{{ system_ssh_dir_public_keys }}/{{ item.1 }}.pub') }}"
5151
when: system_ssh_dir_public_keys is defined
5252
with_subelements:
5353
- "{{ system_users }}"
@@ -56,8 +56,8 @@
5656

5757
- name: remove deprecated ssh keys
5858
authorized_key:
59-
user="{{ item.0.name }}"
60-
key="{{ lookup('file', '{{ system_ssh_dir_deprecated_keys }}/{{ item.1.value }}') }}"
59+
user="{{ system_users[item.0].name }}"
60+
key="{{ lookup('file', '{{ system_ssh_dir_deprecated_keys }}/{{ item.1 }}.pub') }}"
6161
state=absent
6262
when: system_ssh_dir_deprecated_keys is defined and system_ssh_deprecated_keys is defined
6363
with_nested:

0 commit comments

Comments
 (0)