Speed up setup on VMware if ssh is available
This commit is contained in:
parent
6705411b2d
commit
12a7549aaa
@ -43,6 +43,15 @@
|
|||||||
changed_when: result.rc == 0
|
changed_when: result.rc == 0
|
||||||
register: result
|
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
|
- name: Speed-up Bootstrap process
|
||||||
ansible.builtin.lineinfile:
|
ansible.builtin.lineinfile:
|
||||||
path: /etc/pacman.conf
|
path: /etc/pacman.conf
|
||||||
|
@ -18,3 +18,4 @@ ansible_vmware_guest_path: "/{{ hypervisor_cluster }}/vm{{ vm_path }}/{{ hostnam
|
|||||||
ansible_vmware_validate_certs: no
|
ansible_vmware_validate_certs: no
|
||||||
ansible_vmware_tools_user: "root"
|
ansible_vmware_tools_user: "root"
|
||||||
ansible_vmware_tools_password: ""
|
ansible_vmware_tools_password: ""
|
||||||
|
vmware_ssh: true
|
||||||
|
Loading…
Reference in New Issue
Block a user