From 9ad90de4bc7f1835e909f8e2d96578391e188de6 Mon Sep 17 00:00:00 2001 From: Marek Hulan Date: Mon, 7 Aug 2017 08:58:20 +0200 Subject: [PATCH] Fix sending facts to Foreman --- lib/ansible/plugins/callback/foreman.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/plugins/callback/foreman.py b/lib/ansible/plugins/callback/foreman.py index c686d3c9cef..796925861c8 100644 --- a/lib/ansible/plugins/callback/foreman.py +++ b/lib/ansible/plugins/callback/foreman.py @@ -224,7 +224,7 @@ class CallbackModule(CallbackBase): res = result._result module = result._task.action - if module == 'setup': + if module == 'setup' or 'ansible_facts' in res: host = result._host.get_name() self.send_facts(host, res) else: