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.

-- 
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/f5598744-d5e9-4add-9440-849f1d3a0332%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to