browse
ansible/Ansible
Red HatAgentless automation tool for configuration management, application deployment, and infrastructure orchestration.
Infrastructure as CodeJSON
01Install
brew install ansible02Global Flags
| Flag | Type | Description |
|---|---|---|
--inventory/-i | string | Path to inventory file or host list |
--limit/-l | string | Limit to specific hosts |
--become/-b | boolean | Run operations with privilege escalation |
--check/-C | boolean | Dry run without making changes |
--diff/-D | boolean | Show differences in changed files |
--verbose/-v | boolean | Increase verbosity (use -vvv for more) |
03Authentication
Methods
config-fileenvironment-variables
Env vars
ANSIBLE_CONFIGANSIBLE_INVENTORYANSIBLE_VAULT_PASSWORD_FILEANSIBLE_REMOTE_USERConfig files
~/.ansible.cfgansible.cfg04Capabilities
Reference
binary
ansiblecheck
ansible --versionauth
config-file, environment-variablesformats
textjson flag
ANSIBLE_STDOUT_CALLBACK=json