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
Install profiling module:
ansible-galaxy collection install ansible.posix
Enable profiling in ansible.cfg
in [defaults]
section:
callback_whitelist = ansible.posix.profile_tasks
ansible stag-s4 -m debug -a "var=hostvars[inventory_hostname]"
ansible-galaxy collection install containers.podman
ansible-playbook my.yml -i 162.55.82.217, -e "ansible_user=root"
The trick is to add ,
after the IP address