Skip to content

Commit

Permalink
check if remotes exist
Browse files Browse the repository at this point in the history
  • Loading branch information
bgraef committed Nov 8, 2024
1 parent a72c05b commit 9186f3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion olam/olam_passwordless_setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
key: "{{ lookup('file', 'buffer/{{ item }}-id_rsa.pub') }}"
loop: "{{ groups['control'] | flatten(levels=1) }}"
become: true
when: inventory_hostname in groups['remote']
when:
- inventory_hostname in groups['remote']
- "'remote' in groups"

- name: Print hostvars for groups
ansible.builtin.debug:
Expand Down

0 comments on commit 9186f3a

Please sign in to comment.