projects
/
noc.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge PR#36: fix ssh config after merging gnocci/setup
[noc.git]
/
ansible
/
remove_known_hosts.yml
diff --git
a/ansible/remove_known_hosts.yml
b/ansible/remove_known_hosts.yml
index
5491342
..
abde3f5
100644
(file)
--- a/
ansible/remove_known_hosts.yml
+++ b/
ansible/remove_known_hosts.yml
@@
-2,10
+2,10
@@
hosts: localhost
gather_facts: no
tasks:
hosts: localhost
gather_facts: no
tasks:
- - command: ssh-keygen -f ~/.ssh/known_hosts -R [{{ item }}]:{{ hostvars[vmname].ansible_port }}
+ - command: ssh-keygen -f ~/.ssh/known_hosts -R [{{ item }}]:{{ hostvars[hostname].ansible_port }}
with_items:
with_items:
- - "{{ hostvars[vmname].ansible_host }}"
- - r3-{{ vmname }}
- - r3g-{{ vmname }}
- - r3e-{{ vmname }}
- - "{{ hostvars[vmname].vm_network_cooked.primary.ip }}"
+ - "{{ hostvars[hostname].ansible_host }}"
+ - r3-{{ hostname }}
+ - r3g-{{ hostname }}
+ - r3e-{{ hostname }}
+ - "{{ hostvars[hostname].network_cooked.primary.ip }}"