[stable-2.8] Set _ansible_verbose_override in gather_facts action plugin. Fixes #58310 (#58339)

(cherry picked from commit bc25ac2)

Co-authored-by: Matt Martz <matt@sivel.net>
This commit is contained in:
Matt Martz 2019-06-25 10:28:09 -05:00 committed by Toshio Kuratomi
parent 9406fbe4a2
commit fd73fe02b4
2 changed files with 6 additions and 0 deletions

View file

@ -0,0 +1,3 @@
bugfixes:
- gather_facts - Prevent gather_facts from being verbose, just like is done
in the normal action plugin for setup (https://github.com/ansible/ansible/issues/58310)

View file

@ -115,4 +115,7 @@ class ActionModule(ActionBase):
# tell executor facts were gathered
result['ansible_facts']['_ansible_facts_gathered'] = True
# hack to keep --verbose from showing all the setup module result
result['_ansible_verbose_override'] = True
return result