# Values not passed correctly between jobs using set\_stats and aggregate: no

**URL:** <https://forum.ansible.com/t/values-not-passed-correctly-between-jobs-using-set-stats-and-aggregate-no/37843>\
**Category:** AWX Project\
**Tags:** kubernetes, awx, ee\
**Created:** [April 3, 2023, 9:20am UTC](https://forum.ansible.com/t/values-not-passed-correctly-between-jobs-using-set-stats-and-aggregate-no/37843 "2023-04-03T09:20:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Philipp\_Marti](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Philipp\_Marti](https://forum.ansible.com/u/Philipp_Marti)\
**Post date:** [April 3, 2023, 9:20am UTC](https://forum.ansible.com/t/values-not-passed-correctly-between-jobs-using-set-stats-and-aggregate-no/37843/1 "2023-04-03T09:20:53Z")

</div>

We have recently updated to AWX 21.11.0 (using EE 21.11.0) (previously using AWX 19.4.0 with EE 0.6.0).  
Since this update, values passed between jobs in a workflow job template using set\_stats and aggregate:no are not correct.  
One example:

- name: pass list to other jobs  
ansible.builtin.set\_stats:  
data:  
test: “{{ mylist.host\_out }}”  
aggregate: no

Job1 runs fine and writes values in test variable. test is then passed to job2.  
Under variables, we see test from job1. Job2 writes values in test variable too (we see the change in artifacts).  
Then we start a third job (job3) and it displays test value from job1 and not from job2 :-(.

With “Aggregate: no” it should overwrite variable, but it didn’t overwrite it. In previous version (AWX 19.4.0 with EE 0.6.0 ), test variable was overwritten.  
Is this a bug? How to solve this behaviour?

(unfortunately we can’t fall back to EE 0.6.0 because the Job template fails with error “Pod Running”)

Environment (single node cluster):  
AWX 21.11.0  
EE 21.11.0

Docker 20.10.7

K8s: Major:“1”, Minor:“21”, GitVersion:“v1.21.2”

Best regards,  
Phil

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [April 5, 2023, 6:58pm UTC](https://forum.ansible.com/t/values-not-passed-correctly-between-jobs-using-set-stats-and-aggregate-no/37843/2 "2023-04-05T18:58:59Z")

</div>

Hi Phil,  
Have you seen this error in version 22.x by any chance? Also, what version of Ansible are you on?  
There’s a lot of things here that could be a bug so it would be helpful to have as much info as possible about the system on which the bug is occurring (thanks for all the details so far). If anyone else is also experiencing this, responding to this thread would be very helpful to us devs. 🙂  
-AWX Team

---

<div class="post-metadata">

**Author:** ![Philipp\_Marti](https://avatars.discourse-cdn.com/v4/letter/p/b38774/32.png) [@Philipp\_Marti](https://forum.ansible.com/u/Philipp_Marti)\
**Post date:** [April 6, 2023, 4:01pm UTC](https://forum.ansible.com/t/values-not-passed-correctly-between-jobs-using-set-stats-and-aggregate-no/37843/3 "2023-04-06T16:01:23Z")

</div>

Hi  
We did not try to go on version 22.x  
Ansible version in AWX-EE 21.11.0 is:

bash-4.4$ ansible --version  
ansible [core 2.12.5.post0]  
config file = None  
configured module search path = [‘/home/runner/.ansible/plugins/modules’, ‘/usr/share/ansible/plugins/modules’]  
ansible python module location = /usr/local/lib/python3.8/site-packages/ansible  
ansible collection location = /home/runner/.ansible/collections:/usr/share/ansible/collections  
executable location = /usr/local/bin/ansible  
python version = 3.8.13 (default, Jun 24 2022, 15:27:57) [GCC 8.5.0 20210514 (Red Hat 8.5.0-13)]  
jinja version = 2.11.3  
libyaml = True

Best regards,  
Phil

---

<div class="post-metadata">

**Author:** ![AWX\_Project](https://avatars.discourse-cdn.com/v4/letter/a/eada6e/32.png) [@AWX\_Project](https://forum.ansible.com/u/AWX_Project)\
**Post date:** [April 7, 2023, 5:51pm UTC](https://forum.ansible.com/t/values-not-passed-correctly-between-jobs-using-set-stats-and-aggregate-no/37843/4 "2023-04-07T17:51:26Z")

</div>

It looks like an issue was opened around this for AWX: [https://github.com/ansible/awx/issues/13746](https://github.com/ansible/awx/issues/13746)  
We will continue working in there instead of this thread.

-The AWX Team
