# Modify variables during the playbook

**URL:** <https://forum.ansible.com/t/modify-variables-during-the-playbook/22891>\
**Category:** Ansible Project\
**Created:** [October 26, 2016, 3:19pm UTC](https://forum.ansible.com/t/modify-variables-during-the-playbook/22891 "2016-10-26T15:19:56Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pujan\_Shah1](https://avatars.discourse-cdn.com/v4/letter/p/278dde/32.png) [@Pujan\_Shah1](https://forum.ansible.com/u/Pujan_Shah1)\
**Post date:** [October 26, 2016, 3:19pm UTC](https://forum.ansible.com/t/modify-variables-during-the-playbook/22891/1 "2016-10-26T15:19:56Z")

</div>

Is it possible to modify nested variables when playbook is executing.

nested\_variable:

- {  
ip: 1.2.3.4,  
port: 80,  
host: ‘[example.com](http://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.
