Saving all --extra-vars parameters in file

370 views
Skip to first unread message

Wojciech Korzenny

unread,
Jan 26, 2015, 5:17:59 AM1/26/15
to ansible...@googlegroups.com
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

James Martin

unread,
Jan 28, 2015, 11:41:56 PM1/28/15
to ansible...@googlegroups.com
Why not just use an extra vars file?  Extra vars can be json or yaml files:

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

Reply all
Reply to author
Forward
0 new messages