# Saving all --extra-vars parameters in file

**URL:** <https://forum.ansible.com/t/saving-all-extra-vars-parameters-in-file/17372>\
**Category:** Ansible Project\
**Created:** [January 26, 2015, 10:17am UTC](https://forum.ansible.com/t/saving-all-extra-vars-parameters-in-file/17372 "2015-01-26T10:17:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wojciech\_Korzenny](https://avatars.discourse-cdn.com/v4/letter/w/eada6e/32.png) [@Wojciech\_Korzenny](https://forum.ansible.com/u/Wojciech_Korzenny)\
**Post date:** [January 26, 2015, 10:17am UTC](https://forum.ansible.com/t/saving-all-extra-vars-parameters-in-file/17372/1 "2015-01-26T10:17:59Z")

</div>

Hi,

What’s the easiest way to get the list of all --extra-vars parameters which are given for ansible-playbook playbook.yaml command?  
I’d like to write an ansible module/script which saves those parameters in some file.

Thanks,  
Wojtek

---

<div class="post-metadata">

**Author:** ![James\_Martin1](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@James\_Martin1](https://forum.ansible.com/u/James_Martin1)\
**Post date:** [January 29, 2015, 4:41am UTC](https://forum.ansible.com/t/saving-all-extra-vars-parameters-in-file/17372/2 "2015-01-29T04:41:55Z")

</div>

Why not just use an extra vars file? Extra vars can be json or yaml files:

```auto

--extra-vars "@some_file.yml"
--extra-vars "@some_file.json"

```
