# combine registered var

**URL:** <https://forum.ansible.com/t/combine-registered-var/37196>\
**Category:** Ansible Project\
**Tags:** windows\
**Created:** [October 9, 2022, 6:33pm UTC](https://forum.ansible.com/t/combine-registered-var/37196 "2022-10-09T18:33:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![daemenseth](https://sea1.discourse-cdn.com/ansible/user_avatar/forum.ansible.com/daemenseth/32/677_2.png) [@daemenseth](https://forum.ansible.com/u/daemenseth)\
**Post date:** [October 9, 2022, 6:33pm UTC](https://forum.ansible.com/t/combine-registered-var/37196/1 "2022-10-09T18:33:54Z")

</div>

I use ansible with win\_updates to install windows update.  
To get all updates installed I do multiple loops with a reboot in it  
I do set the contents in a register.  
But a reboot overwrites the register

How can I the register vars from multiple time to one var.  
The contents is a dic  
I tried something like this

my\_strings: “{{ my\_strings | default({‘key’:‘value’}) | combine(available\_updates.filtered\_updates, list\_merge=‘append’) }}”

But I have one result in it
