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

@ -133,6 +133,9 @@ accelerate_daemon_timeout = 30
#special_context_filesystems=nfs,vboxsf,fuse,ramfs
[inventory]
#cache = true
#cache_connection = $HOME/.ansible/inventory
#cache_timeout = 600
# enable inventory plugins, default: 'host_list', 'script', 'yaml', 'ini', 'auto'
#enable_plugins = vmware_vm_inventory
#enable_plugins = community.vmware.vmware_vm_inventory, ini

View File

@ -1,14 +1,5 @@
[test]
z3.lab.loc ansible_host=10.8.11.13 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
# For iPXE deploy VMs
ipxe-deplsrv01-it.lab.loc
[all_linux]
ovpnsrv01-infr-dmz.lab.loc ansible_host=10.1.1.11 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
ovpnsrv09-infr-dmz.lab.loc ansible_host=10.1.1.19 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
websrv99-it-dmz.lab.loc ansible_host=10.1.2.99 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
svcsrv01-it-dmz.lab.loc ansible_host=10.1.254.254 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
fakednssrv01-infr.lab.loc ansible_host=10.1.101.101 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
#autotoolsrv01-it.lab.loc ansible_host=10.1.222.11 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
lin-reposrv01-it.lab.loc ansible_host=10.1.254.51 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
rslogsrv01-it.lab.loc ansible_host=10.1.254.2 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
svcsrv01-it.lab.loc ansible_host=10.1.254.254 ansible_ssh_port=22 ansible_python_interpreter="/usr/bin/python3"
# All dynamic inventory by ./inventories/vmware_vm_inventory.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'"

View File

@ -5,7 +5,7 @@ vcenter_password: "XXXXXXXXX"
vcenter_validate_certs: false
vcenter_datacenter: "DC01"
ansible_user: "root"
ansible_user: "ansb-it"
#ansible_password: "XXXXXXX"
ansible_ssh_private_key_file: '~/.ssh/id_rsa_XXXXXXX'
ansible_ssh_port: 22

View File

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

View File

@ -1,3 +1,3 @@
#
deb http://repo.rosdolg.loc/debian bookworm main contrib non-free non-free-firmware
deb http://repo.rosdolg.loc/debian-security bookworm-security main contrib non-free non-free-firmware
deb http://repo-deb12.rosdolg.loc/debian bookworm main contrib non-free non-free-firmware
deb http://repo-deb12.rosdolg.loc/debian-security bookworm-security main contrib non-free non-free-firmware

View File

@ -6,8 +6,8 @@
- name:
import_tasks: apt_conf.yml
- name:
import_tasks: os_conf.yml
#- name:
# import_tasks: os_conf.yml