Update fix-new-vms.yml

This commit is contained in:
2025-12-13 15:58:37 +00:00
parent df55e85189
commit 59c00c5d23

View File

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