Remove SSH host key.

This commit is contained in:
yohan 2024-03-29 22:11:13 +01:00
parent d7fa931787
commit 96b1c4ce9f

View File

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