Skip to content

Commit

Permalink
fix condition for ssh keys (2)
Browse files Browse the repository at this point in the history
  • Loading branch information
dkmatt0 committed Sep 19, 2021
1 parent 6b30bc7 commit 1faba05
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions tasks/configure_ssh.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@
loop: "{{ item.value.ssh_keys | dict2items }}"
loop_control:
loop_var: ssh_keys
when: "'public' in ssh_keys.value"
when:
- "'ssh_keys' in item.value"
- "'public' in ssh_keys.value"

- name: "configure_ssh | adding a private key to ssh folder for ~{{ item.key }}"
copy:
Expand All @@ -50,4 +52,6 @@
loop: "{{ item.value.ssh_keys | dict2items }}"
loop_control:
loop_var: ssh_keys
when: "'private' in ssh_keys.value"
when:
- "'ssh_keys' in item.value"
- "'private' in ssh_keys.value"

0 comments on commit 1faba05

Please sign in to comment.