Trying to gather facts to write to local file on ansible server

Hi all!

So this has worked at one point but is no longer.

I’m trying to gather information on each of my rhel clients and write that information to one file on my answer server.

Here is my playbook:

Your output doesn’t match the provided play, however, I’m guessing you need a become: no on the task that has delegate_to: localhost on it.

Dang! Thank you!

I’m over at FTC. Give me your email at NOAA and I’ll forward you the playbook I use.

Don't really need a play, just:

ansible -m gather_facts --tree /dir/with/json/file/per/host/ all