Want to save variable of one role so that can be used again, and not run the compelete ansible again

7 views
Skip to first unread message

Amit sharma

unread,
Jun 12, 2019, 9:42:42 AM6/12/19
to Ansible Development
Hi,

I have a big Ansible with about 10+ roles in it that takes around 1 hr to run completely .
Can some one help me how i can store all variables  in a json so that i can trigger a only a failed role..

I am using hostvars[inventory_hostname] but it have a very big json.
I even have set gather_facts:no still getting very larger json.

Please help out in this as it will save a lot of time in development.

thanks

James Tanner

unread,
Jun 12, 2019, 9:51:54 AM6/12/19
to Amit sharma, Ansible Development
This question is better suited for the project mailing list rather than the devel list. However, I think what you are asking for could be accomplished with fact caching:


--
You received this message because you are subscribed to the Google Groups "Ansible Development" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-deve...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/8bc7228d-0339-4df9-9a79-746494fa9727%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages