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:
https://docs.ansible.com/ansible/latest/plugins/cache.html On Wed, Jun 12, 2019 at 9:42 AM Amit sharma <amit.1995sha...@gmail.com> wrote: > 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 > > -- > 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-devel+unsubscr...@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 > <https://groups.google.com/d/msgid/ansible-devel/8bc7228d-0339-4df9-9a79-746494fa9727%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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-devel+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-devel/CAMSYDtwMNoH%2BBZoyyGnV5T%3DBmhk9dPArhwtXgR_NuFP-hP%2B5tw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.