From a4e91199e71aafff55120ebb9ebef1826d741db8 Mon Sep 17 00:00:00 2001
From: Pawel Wieczorek
Date: Fri, 29 Jan 2021 14:19:40 +0100
Subject: Create cluster operator access information
Issue-ID: INT-1601
Change-Id: I218ec5521d97eab298ea0556f690f2bc3d8ccbfa
Signed-off-by: Pawel Wieczorek
---
.../roles/openstack/create_devstack_hosts/tasks/create_host.yml | 4 ++++
1 file changed, 4 insertions(+)
(limited to 'deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml')
diff --git a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml
index c3b40d29d..c217abaa9 100644
--- a/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml
+++ b/deployment/noheat/infra-openstack/ansible/roles/openstack/create_devstack_hosts/tasks/create_host.yml
@@ -27,3 +27,7 @@
ansible_ssh_user: "{{ image.user }}"
ansible_ssh_extra_args: "-o StrictHostKeyChecking=no"
ansible_ssh_private_key_file: "~/.ssh/{{ keypair.key.name }}"
+
+- name: Add host to hosts dict
+ set_fact:
+ hosts_dict: "{{ hosts_dict|default({}) | combine( {new_host.server.name: new_host.server.private_v4} ) }}"
--
cgit 1.2.3-korg