Writing output to ansible server local file

Hi all,

I’ve tried this and it’s worked before but after an upgrade some time ago, it stopped working. I haven’t used it in ages.

Anyway, if I want to get variables about my inventory: mac address, ip, os version, etc., and write that to a file, what would be my syntax on doing this?