Check out the syntax of 'all' file. I feel the indentation is not right.

On Tue, Jun 30, 2020 at 5:29 PM Johana Galarza Monta <monta.joh...@gmail.com>
wrote:

> but that doesnt't respond to my answer on why this works when it is in the
> playbook... and not when it is in groups-vars
>
> On Tuesday, 30 June 2020 12:28:56 UTC+2, Johana Galarza Monta wrote:
>>
>> I have a the below in my groups vars, and in a role I am trying to add a
>> conditional on `module-a` such as when: " 'module-a' in module" but keeps
>> throwing me this error
>>
>> {"msg": "The conditional check ' 'module-a' in modules' failed. The error
>> was: error while evaluating conditional ( 'module-a' in modules): Unable to
>> look up a name or access an attribute in template string ({% if  'module-a
>> in modules %} True {% else %} False {% endif %}).\nMake sure your variable
>> name does not contain invalid characters like '-': argument of type
>> 'AnsibleUndefined' is not iterable.....
>>
>>  but somehow it works when I put this in the playbook itself...
>>
>> Did anyone had such an issue? Or.... any idea why this works on the
>> playbook but not under gorup_vars/all...??
>>
>>  vars:
>>      module:
>>         - module-a
>>
>>
>>
>> --
> 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 view this discussion on the web visit
> https://groups.google.com/d/msgid/ansible-project/e22740d1-18cb-4918-ae95-2f3df3ed0f21o%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/e22740d1-18cb-4918-ae95-2f3df3ed0f21o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG-N3P6RF-aU7wo5UP_JnSt1toJuc3uAJ9B194aQxs%2B5x6i56A%40mail.gmail.com.

Reply via email to