browse
ansible/

Ansible

Red Hat

Agentless automation tool for configuration management, application deployment, and infrastructure orchestration.

Infrastructure as CodeJSON
01Install
brew install ansible

02Global Flags
FlagTypeDescription
--inventory/-istringPath to inventory file or host list
--limit/-lstringLimit to specific hosts
--become/-bbooleanRun operations with privilege escalation
--check/-CbooleanDry run without making changes
--diff/-DbooleanShow differences in changed files
--verbose/-vbooleanIncrease verbosity (use -vvv for more)

03Authentication
Methods
config-fileenvironment-variables
Env vars
ANSIBLE_CONFIGANSIBLE_INVENTORYANSIBLE_VAULT_PASSWORD_FILEANSIBLE_REMOTE_USER
Config files
~/.ansible.cfgansible.cfg

04Capabilities
Reference
binaryansible
checkansible --version
authconfig-file, environment-variables
formatstext
json flagANSIBLE_STDOUT_CALLBACK=json