yes. used a group so the when was not needed.
On Tuesday, September 20, 2016 at 7:11:17 AM UTC-7, Matt Martz wrote:
> You should generally provide your full task, so I'm going to take a guess
> I am pretty sure the problem is that you are using `with_items: users`
> also. The problem is that `when` statements are evaluated *after*
> `with_items`, since the `when` statement is evaluated per item in the loop.
> On Tue, Sep 20, 2016 at 5:42 AM, pixel fairy <pixel...@gmail.com
>> using ansible 22.214.171.124
>> running a task with 'when: users is defined' works fine for hosts that
>> have that variable. for hosts that dont, the play still runs, but gives a
>> warning that in the future, an undefined variable will be a fatal error. is
>> there another way of running tasks based on the existence of a given var?
>> 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
>> To post to this group, send email to ansible...@googlegroups.com
>> To view this discussion on the web visit
>> For more options, visit https://groups.google.com/d/optout.
> Matt Martz
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 post to this group, send email to email@example.com.
To view this discussion on the web visit
For more options, visit https://groups.google.com/d/optout.