Note_Tech

All technological notes.


Project maintained by simonangel-fong Hosted on GitHub Pages — Theme by mattgraham

Ansible - Fundamental

Back


Ansible

Ansbile parameters


Configuration Files


Override Default Configuration

ANSIBLE_CONFIG=/opt/ansible-web.cfg ansible-playbook web-playbook.yml
ANSIBLE_PARAMETER_NAME=new_value ansible-playbook playbook.yml
export ANSIBLE_PARAMETER_NAME=new_value
ansible-playbook playbook.yml

[defaults]

Entry Desc
inventory path to the default inventory file.
remote_user default SSH user.
roles_path path to roles.
host_key_checking whether to check SSH host keys.
forks number of parallel processes.

Common Command

CMD DESC
ansible-config list List all configuration
ansible-config view Show the currently active config file
ansible-config dump Show the current settings and where they are picked up
ansible-config dump \| grep GATHERING Show the a specific paramter settings