The idea of a "skip" task has been proposed.

It would need to be implemented by something that probably set a flag in
the fact cache that playbook/__init__.py knew about, and some automagic,
and then cleared between starting new plays.

Pull requests might be entertained if it looked like:

- skip: msg="I'm not that kind of Doctor"
  when: timelord

etc

Could be useful for security roles that opt out of running when certain
apps aren't installed! (think STIG and such).

If someone wants to take a crack at it, have at!




On Mon, May 19, 2014 at 4:59 PM, Brian Coca <[email protected]> wrote:

> Plays cannot be included in roles, only the other way around
>
> Includes are never conditional, conditionals get applied to the tasks
> included, but not to the include itself.
> ​
>
> --
> 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/CADn%2BHszmKCD5c7kpquUYw%3DVKX4rQKddyq%2BM86Q3oNFJ8thuFNw%40mail.gmail.com<https://groups.google.com/d/msgid/ansible-project/CADn%2BHszmKCD5c7kpquUYw%3DVKX4rQKddyq%2BM86Q3oNFJ8thuFNw%40mail.gmail.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/CA%2BnsWgwU-o2KozRWfqc5P86gUpJU85xd%2BW2E5X4%3DO3YTUgFx0g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to