summaryrefslogtreecommitdiffstats
path: root/roles/openshift_master
diff options
context:
space:
mode:
authorJhon Honce <jhonce@redhat.com>2014-10-03 15:16:18 -0700
committerJhon Honce <jhonce@redhat.com>2014-10-03 15:16:18 -0700
commitb00727520bc903efc02ece721c3500e599f18b75 (patch)
tree6eb2b8951fa06072b4a58f325ade5fa158e670ef /roles/openshift_master
parentb1b2cbe00cfe766a414972352730454c1e79c2c2 (diff)
downloadopenshift-b00727520bc903efc02ece721c3500e599f18b75.tar.gz
openshift-b00727520bc903efc02ece721c3500e599f18b75.tar.bz2
openshift-b00727520bc903efc02ece721c3500e599f18b75.tar.xz
openshift-b00727520bc903efc02ece721c3500e599f18b75.zip
WIP Infra - Use variables in roles
Diffstat (limited to 'roles/openshift_master')
-rw-r--r--roles/openshift_master/tasks/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/openshift_master/tasks/main.yml b/roles/openshift_master/tasks/main.yml
index 5a940c88a..83573cb27 100644
--- a/roles/openshift_master/tasks/main.yml
+++ b/roles/openshift_master/tasks/main.yml
@@ -9,8 +9,8 @@
regexp={{ item.regex }}
line="{{ item.line }}"
with_items:
- - { regex: '^OPENSHIFT_MASTER', line: 'OPENSHIFT_MASTER=\"{{ hostvars[inventory_hostname].ansible_eth0.ipv4.address }}\"' }
- - { regex: '^OPENSHIFT_BIND_ADDR', line: 'OPENSHIFT_BIND_ADDR=\"{{ hostvars[inventory_hostname].ansible_eth0.ipv4.address }}\"'}
+ - { regex: '^OPENSHIFT_MASTER', line: 'OPENSHIFT_MASTER=\"{{ oo_bind_ip }}\"' }
+ - { regex: '^OPENSHIFT_BIND_ADDR', line: 'OPENSHIFT_BIND_ADDR=\"{{ oo_bind_ip }}\"'}
notify:
- restart openshift-master