On Thursday, 22 March 2018 17.12.19 CET [email protected] wrote: > Hi, > > This syntax works to override the var "service_mesh" when we execute this > ansible playbook command > > "ansible-playbook -i inventory/cloud_host playbook/post_installation.yml > -e service_mesh=true" > > but the var is not set to true if thethis var is defined within a > extra_vars.yml file and the following command executed > > "ansible-playbook -i inventory/cloud_host playbook/post_installation.yml > -e @extra_vars.yml" > > Snapshot of the extra_vars.yml file > > > --- > # Global vars > openshift_node: masters > > infra_project: infra > target_platform: local > experimental_features: disable > service_mesh: true > > Do I miss something ?
service_mesh=true and service_mesh: true is not the same. The first one is a the string true and the second one is the boolean value true. So you should always filter the variable thru the bool filter like so when: service_mesh | bool == true Then it will work if service_mesh is a string or a bool. -- Kai Stian Olstad -- 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 [email protected]. To post to this group, send email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/4244047.LscFh2cHId%40x1. For more options, visit https://groups.google.com/d/optout.
