pass arguments between jobs within a workflow

2,535 views
Skip to first unread message

franck labatut

unread,
Sep 13, 2017, 12:42:58 PM9/13/17
to AWX Project
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

James Laska

unread,
Sep 13, 2017, 2:07:43 PM9/13/17
to franck labatut, AWX Project
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


--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project+unsubscribe@googlegroups.com.
To post to this group, send email to awx-p...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/awx-project/3b05497e-b840-4df4-85dc-b17adca5f392%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

franck labatut

unread,
Sep 14, 2017, 3:11:18 AM9/14/17
to AWX Project
Hi James,
exactly what I'm looking for , i'm going back working on my workflows then :)

Thanks so much
Franck

On Wednesday, September 13, 2017 at 8:07:43 PM UTC+2, James Laska wrote:
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

On Wed, Sep 13, 2017 at 12:42 PM, franck labatut <franck....@ubisoft.com> wrote:
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

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.

Vinod Patil

unread,
Feb 16, 2018, 12:27:53 AM2/16/18
to AWX Project
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

Arkar Aung

unread,
Jun 14, 2018, 5:33:59 AM6/14/18
to AWX Project
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

On Thursday, 14 September 2017 02:07:43 UTC+8, James Laska wrote:
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

On Wed, Sep 13, 2017 at 12:42 PM, franck labatut <franck....@ubisoft.com> wrote:
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

--
You received this message because you are subscribed to the Google Groups "AWX Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to awx-project...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages