From bc25ac20e13255ecd0142d45965798b7adb568cd Mon Sep 17 00:00:00 2001 From: Matt Martz Date: Tue, 25 Jun 2019 10:28:09 -0500 Subject: [PATCH] Set _ansible_verbose_override in gather_facts action plugin. Fixes #58310 (#58339) --- changelogs/fragments/58310-gather-facts-verbosity.yml | 3 +++ lib/ansible/plugins/action/gather_facts.py | 3 +++ 2 files changed, 6 insertions(+) create mode 100644 changelogs/fragments/58310-gather-facts-verbosity.yml diff --git a/changelogs/fragments/58310-gather-facts-verbosity.yml b/changelogs/fragments/58310-gather-facts-verbosity.yml new file mode 100644 index 00000000000..a2775a1b920 --- /dev/null +++ b/changelogs/fragments/58310-gather-facts-verbosity.yml @@ -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) diff --git a/lib/ansible/plugins/action/gather_facts.py b/lib/ansible/plugins/action/gather_facts.py index 4fa084e1d2d..a2fe5aaece5 100644 --- a/lib/ansible/plugins/action/gather_facts.py +++ b/lib/ansible/plugins/action/gather_facts.py @@ -119,4 +119,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