# Change a dictionary within a loop

**URL:** <https://forum.ansible.com/t/change-a-dictionary-within-a-loop/30113>\
**Category:** Ansible Project\
**Created:** [April 15, 2019, 6:28pm UTC](https://forum.ansible.com/t/change-a-dictionary-within-a-loop/30113 "2019-04-15T18:28:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Spiro\_Mitsialis](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Spiro\_Mitsialis](https://forum.ansible.com/u/Spiro_Mitsialis)\
**Post date:** [April 15, 2019, 6:28pm UTC](https://forum.ansible.com/t/change-a-dictionary-within-a-loop/30113/1 "2019-04-15T18:28:38Z")

</div>

I am trying to edit ansible\_facts created by network-engine inside a loop but cannot figure out the syntax.

I have a bunch of VLANs as a dict.
