# Writing output to ansible server local file

**URL:** <https://forum.ansible.com/t/writing-output-to-ansible-server-local-file/34596>\
**Category:** Ansible Project\
**Created:** [February 9, 2021, 6:48pm UTC](https://forum.ansible.com/t/writing-output-to-ansible-server-local-file/34596 "2021-02-09T18:48:49Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chris\_Bidwell](https://avatars.discourse-cdn.com/v4/letter/c/da6949/32.png) [@Chris\_Bidwell](https://forum.ansible.com/u/Chris_Bidwell)\
**Post date:** [February 9, 2021, 6:48pm UTC](https://forum.ansible.com/t/writing-output-to-ansible-server-local-file/34596/1 "2021-02-09T18:48:49Z")

</div>

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?
