Are you saying you might to see the change report on a role-by-role basis?

This could be done with a custom callback plugin, but might take a bit of
work.




On Sun, Mar 16, 2014 at 12:34 AM, Xu Chen <[email protected]> wrote:

> I wonder if there is a way to report "changed" for a group of tasks..
>
> For example, I want to have a play like this:
>
> - include: sub-play1.yml
>
> - include: sub-play2.yml
>   "only when something changed in sub-play1"
>
> Or, a play like this:
>
> - hosts: group1
>   tasks:
>     - t1
>     - t2
>
> - hosts: group2
>   tasks: ...
>   "only when something changed in either t1 or t2 of the previous tasks"
>
>
> Maybe I can achieve this by getting access to the internal counter of
> "changed"? Or maybe there is a better way to do this? Thanks..
>
> --
> You received this message because you are subscribed to the Google Groups
> "Ansible Project" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/775dca86-8b69-442a-8746-fd964d0269f4%40googlegroups.com<https://groups.google.com/d/msgid/ansible-project/775dca86-8b69-442a-8746-fd964d0269f4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAEVJ8QPjytv%2BqwHT%3DZVO8_6MbsGJW1iWKhvHj0m6uhsV1C3Bmw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to