Merge "Scope all_known_hosts in mult-node-known-hosts"

This commit is contained in:
Zuul 2018-07-24 06:56:03 +00:00 committed by Gerrit Code Review
commit 58d89bd5bd
1 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@
known_hosts:
name: "{{ item.name }}"
key: "{{ item.key }}"
with_items: "{{ all_known_hosts }}"
with_items: "{{ ansible_facts.all_known_hosts }}"
- name: add default known_host record for every user
become: true
@ -14,4 +14,4 @@
name: "{{ item.name }}"
key: "{{ item.key }}"
path: /etc/ssh/ssh_known_hosts
with_items: "{{ all_known_hosts }}"
with_items: "{{ ansible_facts.all_known_hosts }}"