Fix variable reference
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
29f7ebf14a
commit
8daffc88b2
@ -72,12 +72,9 @@
|
|||||||
register: publickeys
|
register: publickeys
|
||||||
with_items: "{{ nodes }}"
|
with_items: "{{ nodes }}"
|
||||||
|
|
||||||
- ansible.builtin.debug:
|
|
||||||
var: publickeys
|
|
||||||
|
|
||||||
- name: Store public keys
|
- name: Store public keys
|
||||||
ansible.builtin.known_hosts:
|
ansible.builtin.known_hosts:
|
||||||
name: "{{ item.item }}"
|
name: "{{ item.item.name }}"
|
||||||
key: "{{ item.stdout }}"
|
key: "{{ item.stdout }}"
|
||||||
state: present
|
state: present
|
||||||
path: ~/.ssh/known_hosts
|
path: ~/.ssh/known_hosts
|
||||||
|
Loading…
Reference in New Issue
Block a user