Add some options to ansible.conf

This commit is contained in:
2025-01-03 14:55:31 +03:00
parent 3b75cb9f77
commit ac7449d5f6
18 changed files with 16 additions and 612 deletions

View File

@ -1,3 +0,0 @@
#!/bin/bash
ansible-inventory -i ~/.secret/.ansible/inventories/vmware_vm_inventory/vmware_vm_inventory.yml --list -y --output ~/.secret/.ansible/inventories/hosts.yml

View File

@ -5,9 +5,9 @@
# cat zzz.yml | grep -i "guestid" | sed 's/^ config.guestId: //' | sed 's/$.*//' | sort | uniq
#
plugin: community.vmware.vmware_vm_inventory
strict: true
strict: false
hostname: "vcsrv01.XXXXXXX.XXX"
username: "ansb-autotools-it@vsphere.local"
username: "XXXXXXXXXXXXXXXX@vsphere.local"
password: "XXXXXXXXXXXXXXXX"
validate_certs: false
with_tags: true
@ -71,7 +71,7 @@ filters:
- config.template == false
- summary.runtime.powerState == 'poweredOn'
- '"vCLS" not in config.name'
- '"vcsrv01.lab.loc" not in config.name'
- '"vcsrv01.XXXXXXX.loc" not in config.name'
#"'Nas01' in config.datastoreUrl[0].name"
# or guest.ipAddress is match('192.169.*'))
@ -82,7 +82,7 @@ compose:
# composed_var: 'config.name'
# ansible_user: "'root'"
# ansible_connection: "'ssh'"
# ansible_ssh_private_key_file: "'~/.ssh/id_rsa_XXXXXX'"
# ansible_ssh_private_key_file: "'~/.ssh/id_rsa_XXXXXXX'"
# ansible_ssh_port: "'22'"
# ansible_python_interpreter: "'/usr/bin/python3'"