summaryrefslogtreecommitdiffstats
path: root/xci/installer/osh/playbooks/roles/install-osh-mini/tasks
diff options
context:
space:
mode:
authorManuel Buil <mbuil@suse.com>2019-08-05 14:06:28 +0200
committerManuel Buil <mbuil@suse.com>2019-08-06 14:59:00 +0200
commit153fc3e2380a5cdc85d7866f170653e5e9df81f0 (patch)
tree9262f70310ebad8c8c01a2791cbeb5d3e5a9165c /xci/installer/osh/playbooks/roles/install-osh-mini/tasks
parent979caf7b697d59ff2452d47728a827d516fc7701 (diff)
Remove hardcoded ips
We should use the Ansible variables whenever possible instead of hardcoding values like IPs deploy-scenario:k8-calico-nofeature installer-type:osh Change-Id: Iee5f179b0b36d2fcbf9b2eca82a3c31cefd83229 Signed-off-by: Manuel Buil <mbuil@suse.com>
Diffstat (limited to 'xci/installer/osh/playbooks/roles/install-osh-mini/tasks')
-rw-r--r--xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml b/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml
index e3fa2ddf..eb920a8e 100644
--- a/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml
+++ b/xci/installer/osh/playbooks/roles/install-osh-mini/tasks/main.yml
@@ -96,7 +96,7 @@
chdir: /root/repos/openstack-helm
- name: Copy script to the worker node
- command: "scp -o \"StrictHostKeyChecking no\" tools/deployment/developer/ceph/170-setup-gateway.sh root@192.168.122.4:170-setup-gateway.sh"
+ command: "scp -o \"StrictHostKeyChecking no\" tools/deployment/developer/ceph/170-setup-gateway.sh root@{{ hostvars.node1.ip }}:170-setup-gateway.sh"
changed_when: false
args:
chdir: /root/repos/openstack-helm
@@ -104,7 +104,7 @@
- name: Setup the gateway to the public network at worker node
command: /root/170-setup-gateway.sh
changed_when: false
- delegate_to: 192.168.122.4
+ delegate_to: node1
- name: Add a route from opnfv to worker node for the public network
command: ip route add 172.24.4.0/24 via 192.168.122.4