Environment specific files

26 views
Skip to first unread message

ssk

unread,
Aug 5, 2015, 7:38:14 PM8/5/15
to Ansible Project
Hi, 
Is there a way to arrange all environment specific files ? I have some property files and certificates specific to production and wonder if ansible can identify the same files out of production folders when running through the scripts. 


ssk

Paul Markham

unread,
Aug 5, 2015, 8:06:28 PM8/5/15
to Ansible Project
If you have an Ansible variable which contains the environment you could then use something like {{environment}} anywhere you need to refer to environment specific files.

Brian Coca

unread,
Aug 6, 2015, 9:50:21 AM8/6/15
to Ansible Project
don't use environment as a variable, as it is an existing directive
and can cause confusion ( i use myenv)


--
Brian Coca
Reply all
Reply to author
Forward
0 new messages