Ansible Plugin
Automate IT infrastructure with Ansible.
Commands
ansible <resource> <action>— Execute ansible commandsansible self version— Print ansible versionansible inventory list— List hosts in inventoryansible playbook run— Run an Ansible playbookansible galaxy install— Install a role or collection from Ansible Galaxyansible galaxy search— Search Ansible Galaxy for roles and collectionsansible vault encrypt— Encrypt a file with Ansible Vaultansible vault decrypt— Decrypt a file with Ansible Vaultansible _ _— Passthrough to ansible CLI
Usage
ansible self version— Print ansible versionansible inventory list [-i <inventory>]— List hosts in inventoryansible playbook run <playbook> [-i <inventory>] [--check] [--diff]— Run a playbookansible galaxy install <name>— Install a Galaxy role/collectionansible galaxy search <query>— Search Galaxy for roles/collectionsansible vault encrypt <file>— Encrypt a file with Vaultansible vault decrypt <file>— Decrypt a file with Vaultansible _ _ <args>— Passthrough any ansible command
Examples
# Check all hosts are reachable
ansible all -m ping -i inventory.ini
# Run a playbook in check mode
ansible-playbook site.yml --check -i inventory.ini
# Install a role from Galaxy
ansible-galaxy install geerlingguy.nginx