Added README.md for vmware_vm_inventory
This commit is contained in:
parent
5ae5fe2586
commit
7cefb223f6
16
ansible/inventories/README.md
Normal file
16
ansible/inventories/README.md
Normal file
@ -0,0 +1,16 @@
|
||||
# Inventory gets from VMVare vSphere
|
||||
|
||||
<br/>
|
||||
<br/>
|
||||
Add it to you Ansible config file ( /root/.ansible.cfg ):<br/>
|
||||
<br/>
|
||||
`[inventory]`<br/>
|
||||
`enable_plugins = host_list, script, auto, yaml, ini, toml, community.vmware.vmware_vm_inventory`<br/>
|
||||
<br/>
|
||||
<br/>
|
||||
For use:<br/>
|
||||
<br/>
|
||||
`ansible-inventory -i /root/ansible/inventories/vmware_vm_inventory.yml --list -y --output zzz.yml`<br/>
|
||||
`cat zzz.yml | grep -i "guestid" | sed 's/^ config.guestId: //' | sed 's/$.*//' | sort | uniq`<br/>
|
||||
<br/>
|
||||
<br/>
|
Loading…
x
Reference in New Issue
Block a user