diff --git a/deploy_ovh_instance.yml b/deploy_ovh_instance.yml index c314087..4a9da8e 100644 --- a/deploy_ovh_instance.yml +++ b/deploy_ovh_instance.yml @@ -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