diff --git a/index.html b/index.html index 207b7b9..1d4620a 100644 --- a/index.html +++ b/index.html @@ -1054,7 +1054,7 @@ Apply complete! Resources: 2 added, 0 changed, 0 destroyed.
# openstack.yml — dynamic
+# terraform.yml — dynamic (from TF state)
-plugin: openstack.cloud.openstack
-expand_hostvars: true
-groups:
- webservers: "'web' in name"
+plugin: cloud.terraform.terraform_state
+backend_type: local
+backend_config:
+ path: ../terraform/terraform.tfstate
-i flag on the next slide points here — Ansible needs to know which hosts to target.groups/keyed_groups build groups from tags or metadata.-i accepts a static file, a directory (mixing several sources), or a plugin config like the one on the right..tfstate (remember slide 16); the cloud.terraform.terraform_state plugin reads that same state and turns each resource into an Ansible host. One source of truth — no second host list to keep in sync.openstack.cloud.openstack or AWS/OVHcloud query the provider API directly. keyed_groups build groups from tags/metadata.