Need help

Hi All,

  1. I want to list or view only changed task in ansible after ran playbook. is it any cmd available?

ex:

Play Recap:
duba-scs-appa01. ok=25 changed=4 ( I want to list only what are all the changes made in this server ) any cmds?

  1. What is the use of --retry file?

  2. How to continue execution of failed task after fixing the error ?

1. I want to list or view only changed task in ansible after ran playbook.
is it any cmd available?

ex:
Play Recap:
duba-scs-appa01. ok=25 changed=4 ( I want to list only what are all
the changes made in this server ) any cmds?

This is controlled by the callback plugin, you can check out the included ones here
https://docs.ansible.com/ansible/devel/plugins/callback.html#plugin-list

If no own is up to the task you would need to write your one.

2. What is the use of --retry file?

retry file contains all host the failed in the last playbook run.
If you run ansible-playbook with this retry file, the plays will only run on those host.

3. How to continue execution of failed task after fixing the error ?

The whole playbook fails and stop executing task on the host.
You could just rerun the playbook on the host(s) or look at "start at task"
https://docs.ansible.com/ansible/latest/playbooks_startnstep.html#start-at-task

Hi Kai,

Thanks you so much for your reply. It would be helpful for my further learning.