RawSushi's Tech Journal
My online tech scrapbook where I keep my notes in case I need to look them up later
Thursday, September 1, 2016
Ansible Variables from File
In the task e.g.
- hosts: appservers
vars_files:
- vars.yml
vars.yml e.g.:
var1Name: var1Value
var2Name: var2Value
var3Name: var3Value
References:
https://www.safaribooksonline.com/library/view/ansible-up-and/9781491915318/ch04.html
http://docs.ansible.com/ansible/playbooks_variables.html
http://stackoverflow.com/questions/27746077/how-to-include-vars-file-in-a-vars-file-with-ansible
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment