Re: [ansible-project] Set variable to some value if undefined

2019-05-24 Thread Tuyen Nguyen
Thank you!  This worked perfectly!!

On Monday, May 13, 2019 at 9:49:29 AM UTC-4, Brian Coca wrote:
>
> That is what the `default` filter is for: 
>
> when: install_office|default('n') == 'y' 
>
>
>
> -- 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/f8ec0387-e207-42d2-ac47-3597279693d7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Set variable to some value if undefined

2019-05-14 Thread Tuyen Nguyen
Hi

Thanks.  I will try this.  I think this should work.

On Monday, May 13, 2019 at 9:49:29 AM UTC-4, Brian Coca wrote:
>
> That is what the `default` filter is for: 
>
> when: install_office|default('n') == 'y' 
>
>
>
> -- 
> -- 
> 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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/7d5f3121-ae52-405c-b4b6-27d54adaf4e9%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: [ansible-project] Set variable to some value if undefined

2019-05-13 Thread Brian Coca
That is what the `default` filter is for:

when: install_office|default('n') == 'y'



-- 
--
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 ansible-project+unsubscr...@googlegroups.com.
To post to this group, send email to ansible-project@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACVha7fufu3U%3DTN7i-G2L_798t2-k-EBBabjMKeYtQbAbkAWZw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.