refactor(vmware): move ansible_connection out of global_defaults into role params
This commit is contained in:
@@ -88,10 +88,9 @@
|
||||
ansible_ssh_extra_args: "-o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no"
|
||||
no_log: true
|
||||
|
||||
- name: Set connection for VMware
|
||||
- name: Derive VMware Tools connection variables
|
||||
when: hypervisor_type == "vmware"
|
||||
ansible.builtin.set_fact:
|
||||
ansible_connection: vmware_tools
|
||||
ansible_vmware_host: "{{ hypervisor_cfg.url }}"
|
||||
ansible_vmware_port: 443
|
||||
ansible_vmware_user: "{{ hypervisor_cfg.username }}"
|
||||
|
||||
Reference in New Issue
Block a user