Skip to content

Commit af972d9

Browse files
committed
Remove hosts from Ansible inventory except for Ansible control host
These are no longer required since we only connect to the Ansible control host using Ansible in this repository.
1 parent 9bec8e8 commit af972d9

File tree

1 file changed

+0
-28
lines changed

1 file changed

+0
-28
lines changed

outputs.tf

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -78,34 +78,6 @@ resource "local_file" "deploy_openstack" {
7878
resource "ansible_host" "control_host" {
7979
name = openstack_compute_instance_v2.ansible_control.access_ip_v4
8080
groups = ["ansible_control"]
81-
}
82-
83-
resource "ansible_host" "compute_host" {
84-
for_each = { for host in openstack_compute_instance_v2.compute : host.name => host.access_ip_v4 }
85-
name = each.value
86-
groups = ["compute"]
87-
}
88-
89-
resource "ansible_host" "controllers_hosts" {
90-
for_each = { for host in openstack_compute_instance_v2.controller : host.name => host.access_ip_v4 }
91-
name = each.value
92-
groups = ["controllers"]
93-
}
94-
95-
resource "ansible_host" "seed_host" {
96-
name = openstack_compute_instance_v2.seed.access_ip_v4
97-
groups = ["seed"]
98-
}
99-
100-
resource "ansible_host" "storage" {
101-
for_each = { for host in openstack_compute_instance_v2.storage : host.name => host.access_ip_v4 }
102-
name = each.value
103-
groups = ["storage"]
104-
}
105-
106-
resource "ansible_group" "cluster_group" {
107-
name = "cluster"
108-
children = ["compute", "ansible_control", "controllers", "seed", "storage"]
10981
variables = {
11082
ansible_user = var.ssh_user
11183
}

0 commit comments

Comments
 (0)