[ansible-project] Re: Getting two results with custom callbacks

2018-04-13 Thread tommcf64
Here is my my playbook. I am also running ansible version 2.4.2.0 --- - hosts: all tasks: - name: Run setup setup: # register: variables On Friday, April 13, 2018 at 11:39:58 AM UTC-4, tommcf64 wrote: > > Hi, > I am attempting to use the Ansible API to run and

[ansible-project] Getting two results with custom callbacks

2018-04-13 Thread tommcf64
Hi, I am attempting to use the Ansible API to run and playbook and insert the facts into a mongodb database but I am getting two documents for each machine. I am a newbie and unfamiliar with the API. Can anyone shed my insight into why my code creates two outputs, I would greatly appreciate