combine registered var

9 views
Skip to first unread message

daeme...@gmail.com

unread,
Oct 9, 2022, 2:33:54 PM10/9/22
to Ansible Project
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

Reply all
Reply to author
Forward
0 new messages