summaryrefslogtreecommitdiffstats
path: root/roles/hostnames
diff options
context:
space:
mode:
Diffstat (limited to 'roles/hostnames')
-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 }}"