refactor(vmware): move ansible_connection out of global_defaults into role params

This commit is contained in:
2026-03-12 02:59:09 +01:00
committed by MORAWSKI Norbert
parent 2085fc1696
commit bd6334c0e7
2 changed files with 11 additions and 4 deletions

View File

@@ -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 }}"