Remove SSH host key.
This commit is contained in:
parent
d7fa931787
commit
96b1c4ce9f
@ -22,8 +22,11 @@
|
||||
changed_when: false
|
||||
|
||||
- name: Remove old SSH host key
|
||||
command: ssh-keygen -f "/home/{{ LINUX_USERNAME }}/.ssh/known_hosts" -R "{{ target_name }}"
|
||||
command: ssh-keygen -f "/home/{{ LINUX_USERNAME }}/.ssh/known_hosts" -R "{{ item }}"
|
||||
changed_when: false
|
||||
with_items:
|
||||
- "{{ target_name }}"
|
||||
- "{{ openstack_output.openstack.accessIPv4 }}"
|
||||
|
||||
- name: configure OVH instance
|
||||
hosts: target
|
||||
|
Loading…
Reference in New Issue
Block a user