Speed up setup on VMware if ssh is available

This commit is contained in:
Sandwich 2024-10-30 18:59:32 +01:00
parent 6705411b2d
commit 12a7549aaa
2 changed files with 10 additions and 0 deletions

View File

@ -43,6 +43,15 @@
changed_when: result.rc == 0
register: result
- name: Set connection back to SSH
when: hypervisor == "vmware" and vmware_ssh | bool
ansible.builtin.set_fact:
ansible_connection: ssh
ansible_user: "root"
ansible_password: ""
ansible_become_password: ""
ansible_ssh_extra_args: '-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no'
- name: Speed-up Bootstrap process
ansible.builtin.lineinfile:
path: /etc/pacman.conf

View File

@ -18,3 +18,4 @@ ansible_vmware_guest_path: "/{{ hypervisor_cluster }}/vm{{ vm_path }}/{{ hostnam
ansible_vmware_validate_certs: no
ansible_vmware_tools_user: "root"
ansible_vmware_tools_password: ""
vmware_ssh: true