title: Ansible breadcrumbs:
ansible all -i <host>, -m <module> [-a <module-arg>]
-i localhost, --connection=local
to run locally.ansible all -i <host>, -m setup -a 'filter=ansible_os_*'
(example fact filter)ansible-playbook <playbook>
ansible-playbook -i <hosts> <playbook>
ansible-playbook -l <group|host> <playbook>
ansible-playbook -t <tag> <playbook>
ansible-playbook --vault-password-file <file> <...>
ansible-vault encrypt_string --vault-password-file ~/.ansible_vault/stuff
no_log
in tasks handling secrets.Example /etc/ansible/ansible.cfg
or ~/.ansible.cfg
:
[defaults]
# Change to "auto" if this path causes problems
interpreter_python = /usr/bin/python3
host_key_checking = false
{% include footer.md %}