# change of parsing of values? (in ansible.cfg)

**URL:** <https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641>\
**Category:** Ansible Project\
**Created:** [January 6, 2024, 8:53pm UTC](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641 "2024-01-06T20:53:04Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriansev](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/adriansev/32/4866_2.png) [@adriansev](https://forum.ansible.com/u/adriansev)\
**Post date:** [January 6, 2024, 8:53pm UTC](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641/1 "2024-01-06T20:53:04Z")

</div>

So, after updating of ansible (i do not know the versions that i had)  
and in the context of setting values for redis fact caching  
see [https://github.com/ansible-collections/community.general/issues/7814](https://github.com/ansible-collections/community.general/issues/7814)  
i notice that quotes are now interpreted literally instead of being evaluated...  
so for an empty variable now i need  
a\_var =  
instead of  
a\_var = ""  
because the later case would just set  
a\_var = '""'

Is anyone aware of this change? Maybe of the reason for it?

Thanks a lot!  
Adrian

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [January 8, 2024, 6:42pm UTC](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641/2 "2024-01-08T18:42:29Z")

</div>

Not really, only thing I can think of is this PR  
[https://github.com/ansible/ansible/pull/79837](https://github.com/ansible/ansible/pull/79837), but ini should have  
kept the old behavior.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [January 8, 2024, 7:26pm UTC](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641/3 "2024-01-08T19:26:50Z")

</div>

sorry, yes, that pr above broke it, this one should fix it  
[https://github.com/ansible/ansible/pull/82388](https://github.com/ansible/ansible/pull/82388)

my brain just came back from vacation and reminded me ....

---

<div class="post-metadata">

**Author:** ![adriansev](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/adriansev/32/4866_2.png) [@adriansev](https://forum.ansible.com/u/adriansev)\
**Post date:** [January 10, 2024, 8:56pm UTC](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641/4 "2024-01-10T20:56:33Z")

</div>

Thanks a lot for info! I closed the community.general issue  
with your information!

I'm not sure from the code of the fix: at this moment i made the things work  
by removing quotes, after the fix will be apply, should i expect any kind of breakage  
because of lack of quotes?

Thanks a lot!  
Adrian

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/ansible/original/1X/1882d9a01da5d8996a862359b0913cc568a39b84.svg) [@system](https://forum.ansible.com/u/system)\
**Post date:** [January 11, 2024, 5:39pm UTC](https://forum.ansible.com/t/change-of-parsing-of-values-in-ansible-cfg/38641/5 "2024-01-11T17:39:14Z")

</div>

It should not break again, the code had 'ini' source detection broken,  
since it was looking for 'ini' as origin, but we set  
'/path/to/ansible.cfg' instead, so it was not matching.
