summaryrefslogtreecommitdiffstats
path: root/roles/hostnames/tasks/main.yaml
diff options
context:
space:
mode:
authorØystein Bedin <bedin@redhat.com>2016-08-21 02:12:53 -0400
committerØystein Bedin <bedin@redhat.com>2016-08-21 02:12:53 -0400
commitc757fd690d24865ef3b5b9a1b536120299b39a6c (patch)
treee6e893eec0d0ea0c66eab3fe9192dad9ac270583 /roles/hostnames/tasks/main.yaml
parent3e3c7761068ed57b7cbee0329bd02d234b82e0e1 (diff)
downloadopenshift-c757fd690d24865ef3b5b9a1b536120299b39a6c.tar.gz
openshift-c757fd690d24865ef3b5b9a1b536120299b39a6c.tar.bz2
openshift-c757fd690d24865ef3b5b9a1b536120299b39a6c.tar.xz
openshift-c757fd690d24865ef3b5b9a1b536120299b39a6c.zip
Updated env_id to be a sub-domain + make the logic a bit more flexible
Diffstat (limited to 'roles/hostnames/tasks/main.yaml')
-rw-r--r--roles/hostnames/tasks/main.yaml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/hostnames/tasks/main.yaml b/roles/hostnames/tasks/main.yaml
index bb45445f5..bf142d653 100644
--- a/roles/hostnames/tasks/main.yaml
+++ b/roles/hostnames/tasks/main.yaml
@@ -1,11 +1,11 @@
---
- name: Setting Hostname Fact
set_fact:
- new_hostname: "{{ custom_hostname | default(inventory_hostname) }}"
+ new_hostname: "{{ custom_hostname | default(inventory_hostname_short) }}"
- name: Setting FQDN Fact
set_fact:
- new_fqdn: "{{ new_hostname }}.{{ dns_domain }}"
+ new_fqdn: "{{ new_hostname }}.{{ full_dns_domain }}"
- name: Setting hostname and DNS domain
hostname: name="{{ new_fqdn }}"