On 17-09-14 18:53, James Cammarata wrote:
In that case, you may wish to do something in your roles like:
- name: check to see if something is already done
whatever: a=b c=d
register: is_done
- name: include the rest of the role tasks from another file if the
above thing isn't done
include: role_tasks.yml
when: not is_done
Thanks James. That's an excellent way to get rid of the repetition.
Cheers,
Patrick
--
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/5419C173.7040508%40puzzled.xs4all.nl.
For more options, visit https://groups.google.com/d/optout.