Using Ansible Callback

Scenario: Set up Ansible callback to monitor running task on remote machine.
Ansible system: CentOS 7, Ansible 2.6
Remote machines:
Both have same root password
1. CentOS 7, ip address:
2. CentOS 6, ip address:

I set up callback plugins to see running ansible-playbook task on remote machine and it is fun and useful.
To set up callback, edit /etc/ansible/ansible.cfg and change the value to minimal.

# vi /etc/ansible/ansible.cfg

Create playbook to check memory usage free -m on 2 remote machines above.
# vi /etc/ansible/grepmemory.yml

Run ansible playbook above.
– Output using callback default.

– Output using callback minimal.

Related posts:

Leave a Reply

Your email address will not be published. Required fields are marked *