set_fact: handle 'cacheable=value' form (#34871)

* Ensure fact isn't cached when cacheable=val form is used

* Don't cache fact when cacheable=val form is used
This commit is contained in:
Pilou 2018-01-15 17:02:24 +01:00 committed by Matt Martz
commit 64e1593243
3 changed files with 22 additions and 1 deletions

View file

@ -36,7 +36,7 @@ class ActionModule(ActionBase):
facts = dict()
cacheable = bool(self._task.args.pop('cacheable', False))
cacheable = boolean(self._task.args.pop('cacheable', False))
if self._task.args:
for (k, v) in iteritems(self._task.args):