Fix variable reference
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-20 09:38:53 +02:00
parent 29f7ebf14a
commit 8daffc88b2

View File

@ -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