User Tools

Site Tools


ansible:ansible_sandbox_example

Ansible sandbox example

ansagent@ansserver:/home/ansagent$ cat ansible.cfg
# config file for ansible -- https://ansible.com/
# ===============================================

# nearly all parameters can be overridden in ansible-playbook
# or with command line flags. ansible will read ANSIBLE_CONFIG,
# ansible.cfg in the current working directory, .ansible.cfg in
# the home directory or /etc/ansible/ansible.cfg, whichever it
# finds first

[defaults]
inventory = ./inventory
host_key_checking = False
retry_files_enabled = False
pipelining = True
ansible_python_interpreter = /usr/bin/python3
#vault_password_file = /home/ansagent/ansible/encrypted/pass
inventory_plugins = /home/ansagent/.ansible/collections/ansible_collections/aix/plugins/inventory
log_path=/var/log/ansible/stdout.log
vault_password_file=./.vaultPwd.yml

ansible_ssh_extra_args='-C -o StrictHostKeyChecking=no -o UserKnownHostsFile=/dev/null'


[inventory]
enabled_plugins = unistra.glpi.inv

[privilege_escalation]
#become = True
# Enable privilege escalation
###become_method = sudo
# Method used for privilege escalation
#become_user = ansagent
# User to become during privilege escalation

Vault files are

ansagent@ansserver:/home/ansagent$ tree group_vars
group_vars
├── redhat.yml
├── root_RedHat.yml
├── root_Ubuntu.yml
├── ubuntu.yml
├── windowsLocal.yml
├── windowsServer.yml
└── windows.yml
ansagent@ansserver:/home/ansagent$ cat inventory
group_vars
├── redhat.yml
├── root_RedHat.yml
├── root_Ubuntu.yml
├── ubuntu.yml
├── windowsLocal.yml
├── windowsServer.yml
└── windows.yml
ansible/ansible_sandbox_example.txt · Last modified: 2023/09/22 16:59 by manu