Hey Brian, thanks for the prompt reply.
Ok, so the colon got that running. So, what I actually mean to do with this
playbook is the opposite, run the second play on all servers EXCEPT the one
from the first play. What is the ansible equivalent of the boolean "not"?
I've tried both when: type =! "syslog" and when: type not "syslog" and
neither works. How would I implement this?
Thanks again!
On Thursday, August 13, 2015 at 2:52:46 PM UTC-5, Brian Coca wrote:
>
> you are missing a colon:
>
> - { role: syslog-client, when: type == "syslog" }
>
>
> fyi, setting the var that way sets it always for all hosts, so that
> when statement is always true.
> --
> Brian Coca
>
--
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/caf38a57-7179-4eab-9fff-7d3edeae9b14%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.