aboutsummaryrefslogtreecommitdiffstats
path: root/roles/hostname/defaults
diff options
context:
space:
mode:
Diffstat (limited to 'roles/hostname/defaults')
-rw-r--r--roles/hostname/defaults/main.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/hostname/defaults/main.yml b/roles/hostname/defaults/main.yml
new file mode 100644
index 0000000..ec58975
--- /dev/null
+++ b/roles/hostname/defaults/main.yml
@@ -0,0 +1,3 @@
+---
+hostname_fqdn: "{{ansible_fqdn}}"
+hostname_name: "{{hostname_fqdn.split('.').0}}"