Commit graph

8 commits

Author SHA1 Message Date
Matt Martz
ffa548503d
Wrap all results, regardless of register, except for actions with clean facts ()
* Wrap all results, regardless of register, except for actions with clean facts. Fixes 

* ci_complete

* Add tests

* Add clog frag
2021-06-04 16:40:53 +02:00
Yadnesh Kulkarni
3add96909d
Fix parsing of values when using an empty string as key () ()
Signed-off-by: Yadnesh Kulkarni <ykulkarn@redhat.com>
2020-11-20 19:22:55 +01:00
Martin Krizek
90134b0ac3
Ensure native jinja is off for non-native tests ()
Even if native jinja is off by default now it is better to be
explicit and it will be prepared in case we changed that default.
2020-09-24 15:52:06 -04:00
Brian Coca
ebb22655e4
implemented 'prefix' for file based cache ()
* implemented 'prefix' for file based cache

Co-authored-by: s-hertel <shertel@redhat.com>
2020-06-11 10:40:25 -04:00
Matt Clay
bca50b47ed Switch set_fact test to private inventory.
Fixes a test failure when there is no explicit localhost in inventory.
2019-01-15 00:32:27 -08:00
Matt Martz
77d2008150
Don't perform string to bool conversion in set_fact when jinja2 native types is enabled ()
* Don't perform string to bool conversion in set_fact when jinja2 native types is enabled. Fixes 

* Add tests for boolean conversions in set_fact
2018-07-30 15:44:38 -05:00
Brian Coca
2afb1090b1 allow incremental update for vars in loop for set_fact/include_vars ()
* fix set_fact/include_vars looping

* tests for all behaviours affected

* add tests with injection off/on
2018-04-06 09:57:34 +10:00
Adrian Likins
6fbd0a8bb5 Add set_fact_persistent action and module. ()
* Add 'cacheable' param to  set_fact action and module.

Used just like set_fact, except facts set with cacheable: true
will be stored in the fact cache if fact caching is enabled.

set_fact normally only sets facts in the non_persistent_fact_cache, so they
are lost between invocations.

* update set_facts docs

* use 'ansible_facts_cacheable' in module/actions result

* pop fact cacheable related items out of args/results

We dont want to use 'ansible_facts_cacheable' result item
or 'cacheable' arg as actual facts, so pop them out of the
dicts.
2017-08-02 15:57:58 -04:00