diff --git a/fix-new-vms.yml b/fix-new-vms.yml index bc85d26..45bf11f 100644 --- a/fix-new-vms.yml +++ b/fix-new-vms.yml @@ -22,19 +22,26 @@ - name: Add VM as runtime host (password SSH) ansible.builtin.add_host: - name: target_vm - groups: runtime - ansible_host: "{{ vm_ip }}" - ansible_user: "{{ vm_user }}" - ansible_password: "{{ vm_pass }}" - ansible_become: true - ansible_become_password: "{{ vm_pass }}" - ansible_ssh_common_args: >- - -o PreferredAuthentications=password - -o PubkeyAuthentication=no - -o IdentitiesOnly=yes - -o StrictHostKeyChecking=no - -o UserKnownHostsFile=/dev/null + name: target_vm + groups: runtime + ansible_host: "{{ vm_ip }}" + ansible_user: "{{ vm_user }}" + ansible_password: "{{ vm_pass }}" + ansible_become: true + ansible_become_password: "{{ vm_pass }}" + ansible_connection: ssh + ansible_ssh_private_key_file: "" + ansible_ssh_common_args: >- + -o PreferredAuthentications=password + -o PubkeyAuthentication=no + -o KbdInteractiveAuthentication=no + -o PasswordAuthentication=yes + -o IdentitiesOnly=yes + -o IdentityFile=/dev/null + -o StrictHostKeyChecking=no + -o UserKnownHostsFile=/dev/null + + - name: Show target ansible.builtin.debug: