summaryrefslogtreecommitdiff
path: root/roles/sane_debian_system/defaults/main.yml
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2021-03-31 08:53:50 +0300
committerLars Wirzenius <liw@liw.fi>2021-03-31 08:53:50 +0300
commit1c461a80c791253ef27be98ccf8c88fe6133a4f2 (patch)
treede8669f11e1d6f483cd3cf76ca91cb7c43a60758 /roles/sane_debian_system/defaults/main.yml
parentf1a3416db0fbf0b62af8c45cd11f66018d00ff41 (diff)
downloaddebian-ansible-1c461a80c791253ef27be98ccf8c88fe6133a4f2.tar.gz
feat! default sane_debian_hostname to inventory hostname
Doesn't break anything if hostname was already set, but just in case, bump version number, which means any users of this role need to be upgraded.
Diffstat (limited to 'roles/sane_debian_system/defaults/main.yml')
-rw-r--r--roles/sane_debian_system/defaults/main.yml4
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/sane_debian_system/defaults/main.yml b/roles/sane_debian_system/defaults/main.yml
index 43d0262..5ef7537 100644
--- a/roles/sane_debian_system/defaults/main.yml
+++ b/roles/sane_debian_system/defaults/main.yml
@@ -1,8 +1,8 @@
# These are the variables expected by this role.
# Playbook should set this to the version of this role it expects to
-# use.
-sane_debian_system_version: null
+# use. Defaults to the inventory hostname.
+sane_debian_system_version: "{{ inventory_hostname }}"
# The desired hostname. Default is empty, which means hostname won't