Skip to content

Commit 5178d30

Browse files
committed
Add reminder on how to run Ansible with fixture
1 parent 87cb036 commit 5178d30

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,12 @@ To test against an example statefile, run:
8383
terraform-inventory --host=52.7.58.202 fixtures/example.tfstate
8484

8585
To update the fixtures, populate `fixtures/secrets.tfvars` with your DO and AWS
86-
account details, and run `fixtures/update`. You almost certainly don't need to
87-
do this.
86+
account details, and run `fixtures/update`. To run a tiny Ansible playbook on
87+
the example resourecs, run:
88+
89+
TF_STATE=fixtures/example.tfstate ansible-playbook --inventory-file=terraform-inventory fixtures/playbook.yml
90+
91+
You almost certainly don't need to do any of this. Use the tests instead.
8892

8993

9094
## License

0 commit comments

Comments
 (0)