From 59c00c5d236fbea41dcc187948bf1f1a8b15f489 Mon Sep 17 00:00:00 2001 From: admin Date: Sat, 13 Dec 2025 15:58:37 +0000 Subject: [PATCH] Update fix-new-vms.yml --- fix-new-vms.yml | 33 ++++++++++++++++++++------------- 1 file changed, 20 insertions(+), 13 deletions(-) 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: