Is it possible to modify nested variables when playbook is executing.
nested_variable:
- {
ip: 1.2.3.4,
port: 80,
host: 'example.com',
ssl:
{
enabled: true,
port: 443,
},
}
During the playbook based on other conditions I want to change enabled to
false.
I tried set_fact module but that does not allow dot in variable name. (Btw
couldn't find any explanation for this behavior as well)
I tried set inside jinja2 template but that doesn't work as well.
--
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/5621a033-955c-4c3d-b364-91bf9f152139%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.