ansible/

Profile Ansible playbooks

Install profiling module:

ansible-galaxy collection install ansible.posix

Enable profiling in ansible.cfg in [defaults] section:

callback_whitelist = ansible.posix.profile_tasks
| 14 Feb 2022

Ansible: List all vars of the host

ansible stag-s4 -m debug -a "var=hostvars[inventory_hostname]"
| 18 Jan 2022

Install module (collection) in Ansible

ansible-galaxy collection install containers.podman
| 21 Dec 2021

Run Ansible playbook on remote IP address

ansible-playbook my.yml -i 162.55.82.217, -e "ansible_user=root"

The trick is to add , after the IP address

| 25 May 2021