fix(vmware): set vmware_tools connection vars and fix role param precedence
This commit is contained in:
3
main.yml
3
main.yml
@@ -114,8 +114,7 @@
|
||||
- role: virtualization
|
||||
when: system_cfg.type == "virtual"
|
||||
become: false
|
||||
vars:
|
||||
ansible_connection: local
|
||||
ansible_connection: local
|
||||
|
||||
- role: environment
|
||||
vars:
|
||||
|
||||
@@ -85,3 +85,8 @@
|
||||
when: hypervisor_type == "vmware"
|
||||
ansible.builtin.set_fact:
|
||||
ansible_connection: vmware_tools
|
||||
ansible_vmware_host: "{{ hypervisor_cfg.url }}"
|
||||
ansible_vmware_port: 443
|
||||
ansible_vmware_tools_user: root
|
||||
ansible_vmware_tools_password: "{{ system_cfg.root.password }}"
|
||||
no_log: true
|
||||
|
||||
Reference in New Issue
Block a user