Accept host group as an argument to allow reusing roles 38/117238/1
authorPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 29 Jan 2021 10:06:16 +0000 (11:06 +0100)
committerPawel Wieczorek <p.wieczorek2@samsung.com>
Fri, 29 Jan 2021 10:06:22 +0000 (11:06 +0100)
Issue-ID: INT-1601
Change-Id: I358332725272c44535257648c7fbccaf94d2ac30
Signed-off-by: Pawel Wieczorek <p.wieczorek2@samsung.com>
deployment/noheat/infra-openstack/ansible/create.yml
deployment/noheat/infra-openstack/ansible/destroy.yml
deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/main.yml
deployment/noheat/infra-openstack/ansible/roles/openstack/destroy_devstack_hosts/tasks/main.yml

index 3885f0e..2b7cf63 100644 (file)
@@ -7,7 +7,8 @@
     - openstack/create_devstack_network
     - openstack/create_devstack_securitygroup
     - openstack/create_devstack_keypair
-    - openstack/create_devstack_hosts
+    - role: openstack/create_devstack_hosts
+      hosts: "{{ cluster.hosts }}"
 - name: Create cluster operator access keypair
   hosts: "operator0"
   gather_facts: False
index 6091e59..c85f17a 100644 (file)
@@ -4,7 +4,8 @@
   connection: local
   gather_facts: False
   roles:
-    - openstack/destroy_devstack_hosts
+    - role: openstack/destroy_devstack_hosts
+      hosts: "{{ cluster.hosts }}"
     - openstack/destroy_devstack_keypair
     - openstack/destroy_devstack_network
     - openstack/destroy_devstack_securitygroup