Seems like something in your workflow is odd -- can you describe more
specifically what you are trying to do?
Based on what you said, I think this might work:
Maybe in your playbook could have a pre-task set a fact -- something like:
pre_tasks:
- name: "Set role change"
set_fact: role_change="no"
That should run before all the other roles are run.
Your role tasks would send a notify to a common handler that would
- name: "Set role change"
set_fact: role_change="yes"
then in your playbook have a task that gets executed after your roles:
- name: do this task when roles change
command: foo bar
when: role_change == "yes"
- James
> --
> 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
ansible-proje...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.