1
1
mirror of https://github.com/adammck/terraform-inventory synced 2024-09-26 08:50:43 +02:00

Add reminder on how to run Ansible with fixture

This commit is contained in:
Adam Mckaig 2015-12-09 23:48:03 -05:00
parent 87cb036b5f
commit 5178d30ae2

View File

@ -83,8 +83,12 @@ To test against an example statefile, run:
terraform-inventory --host=52.7.58.202 fixtures/example.tfstate
To update the fixtures, populate `fixtures/secrets.tfvars` with your DO and AWS
account details, and run `fixtures/update`. You almost certainly don't need to
do this.
account details, and run `fixtures/update`. To run a tiny Ansible playbook on
the example resourecs, run:
TF_STATE=fixtures/example.tfstate ansible-playbook --inventory-file=terraform-inventory fixtures/playbook.yml
You almost certainly don't need to do any of this. Use the tests instead.
## License