diff options
author | Jason DeTiberus <jdetiber@redhat.com> | 2015-03-17 11:09:12 -0400 |
---|---|---|
committer | Jason DeTiberus <jdetiber@redhat.com> | 2015-03-18 15:47:05 -0400 |
commit | 81628f94bad4b303212bf77752f62c03728e0168 (patch) | |
tree | ead84a72fd3a5d94cc1ab9283392ce80fa5fd692 /roles/openshift_common/tasks | |
parent | db9cf8ef4f030f30391e021f360fe0c3db1dce74 (diff) | |
download | openshift-81628f94bad4b303212bf77752f62c03728e0168.tar.gz openshift-81628f94bad4b303212bf77752f62c03728e0168.tar.bz2 openshift-81628f94bad4b303212bf77752f62c03728e0168.tar.xz openshift-81628f94bad4b303212bf77752f62c03728e0168.zip |
Fix hostname handling
- always set hostname if hostname does not match openshift_hostname
- Use local IP instead of public IP as hostname for workaround
Diffstat (limited to 'roles/openshift_common/tasks')
-rw-r--r-- | roles/openshift_common/tasks/main.yml | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/roles/openshift_common/tasks/main.yml b/roles/openshift_common/tasks/main.yml index 728bba4e4..07737a71f 100644 --- a/roles/openshift_common/tasks/main.yml +++ b/roles/openshift_common/tasks/main.yml @@ -1,8 +1,6 @@ --- -# fixme: Once openshift stops resolving hostnames for node queries remove this... -- name: Set hostname to IP Addr (WORKAROUND) - hostname: name={{ openshift_bind_ip }} - when: openshift_hostname_workaround +- name: Set hostname + hostname: name={{ openshift_hostname }} - name: Configure local facts file file: path=/etc/ansible/facts.d/ state=directory mode=0750 |