any idea how i can use an inventory host file here?
I want to run ansible-playbook -i hosts playbook.yml --vault-ask-pass -vvvv
hosts file has all my esxi hosts
---
- name: test
hosts: all
gather_facts: no
vars_files:
- vcenter_creds.yml
vars:
vcenter_hostname: vcenter
vcenter_username: "{{ vcenter_username }}"
vcenter_password: "{{ vcenter_password }}"
hostname: esxi1.domain.com
tasks:
- name: Gather vmware host facts
community.vmware.vmware_host_facts:
hostname: "{{ vcenter_hostname }}"
username: "{{ vcenter_username }}"
password: "{{ vcenter_password }}"
esxi_hostname: "{{ hostname }}"
validate_certs: no
register: host_facts
delegate_to: localhost
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/a2368079-e843-45e7-a9db-6ec84ee80777n%40googlegroups.com.