You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
I've been using Ansible Galaxy roles from Jeff Geerling. In his Github READMEs he seems to say that you can override variable settings in his default/main.yml and vars/*.yml files by reproducing the desired settings in a <project>/vars/main.yml file and then re-assigning them your desire values. This works well but there are times when I'd like to use the following logic in that file:
# vars/main.yml enable_setting:true ...
if enable_setting foo: bar else baz: barf
Is this possible? I didn't see this mentioned in the Ansible docs on Variables and Conditionals.
Thanks.
Brian Coca
unread,
Dec 13, 2017, 10:30:03 PM12/13/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Ansible Project
data files have no logic, but you can use a templated value instead: