pass arguments between jobs within a workflow

Hi there,

any idea how to declare multiple jobs in a workflow and make them pass arguments in between ?
so far i could achieve that goal by using fact cache feature, but i’m not considering it as an affordable solution (polluting the fact cache with temporary variables for instance)
I’m probably missing something …

Thanks
Franck

Greetings Franck,

Take a look at the set_stats ansible module [1]. It was designed in concert with Workflows as a means for passing data between playbook runs. The Tower documentation might come in handy also [2].

Thanks,
James

[1] http://docs.ansible.com/ansible/latest/set_stats_module.html
[2] http://docs.ansible.com/ansible-tower/latest/html/userguide/workflows.html#extra-variables

Hi James,
exactly what I’m looking for , i’m going back working on my workflows then :slight_smile:

Thanks so much
Franck

Hi James and Frank,

Has the set_stats worked for you in workflow templates. I am trying to run the example given in the official documentation but its not working.

Thanks,
Vinod

Hi James Laska,

set_stats is working for single host. for multiple host, it is combine all value and pass.

Eg.
FW1 abc=pass
FW2 abc=fail
Pass variable value, abc=passfail

Appreciate if you help it on.
Arkar Aung