Open franmrl opened 8 years ago
You can use environment variables with the rake
command. They are listed below.
INVENTORY
-- inventory file name (e.g. hosts
)Environment variables take precedence over the .ansiblespec
file.
Example:
$ INVENTORY=hosts rake serverspec:Ansible-Sample-TDD
Please try it!
I currently use static inventories with the following structure in ansible:
Any idea on how should I play around
.ansiblespec
in order to be able to runrake -T staging
orrake -T dev
?