Skip to content

Commit

Permalink
Merge pull request #2 from ansiblebit/develop
Browse files Browse the repository at this point in the history
2.17.2
  • Loading branch information
steenzout authored Dec 14, 2016
2 parents 9ef5bc2 + d883a64 commit 3e99730
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
- name: setup ssh authorized keys
authorized_key:
user="{{ item.0.name }}"
key="{{ lookup('file', '{{ system_ssh_dir_public_keys }}/{{ item.1.value }}.pub') }}"
key="{{ lookup('file', '{{ system_ssh_dir_public_keys }}/{{ item.1 }}.pub') }}"
when: system_ssh_dir_public_keys is defined
with_subelements:
- "{{ system_users }}"
Expand All @@ -56,8 +56,8 @@

- name: remove deprecated ssh keys
authorized_key:
user="{{ item.0.name }}"
key="{{ lookup('file', '{{ system_ssh_dir_deprecated_keys }}/{{ item.1.value }}') }}"
user="{{ system_users[item.0].name }}"
key="{{ lookup('file', '{{ system_ssh_dir_deprecated_keys }}/{{ item.1 }}.pub') }}"
state=absent
when: system_ssh_dir_deprecated_keys is defined and system_ssh_deprecated_keys is defined
with_nested:
Expand Down

0 comments on commit 3e99730

Please sign in to comment.