Need help

19 views
Skip to first unread message

KrishnaKumar Vinayagam

unread,
Oct 24, 2017, 3:39:46 AM10/24/17
to Ansible Project

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? 


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

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

Kai Stian Olstad

unread,
Oct 24, 2017, 11:19:13 AM10/24/17
to ansible...@googlegroups.com
On 24. okt. 2017 09:39, KrishnaKumar Vinayagam wrote:
> 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


--
Kai Stian Olstad

KrishnaKumar Vinayagam

unread,
Oct 24, 2017, 2:10:13 PM10/24/17
to ansible...@googlegroups.com
Hi Kai, 

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


--
You received this message because you are subscribed to a topic in the Google Groups "Ansible Project" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ansible-project/BEWNpKJuK1Y/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ansible-project+unsubscribe@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/7da0cc4e-74ca-2c1b-d77d-4abe440b0460%40olstad.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages