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: