summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
Diffstat (limited to 'roles')
-rw-r--r--roles/base/files/06_preserve_hostname.cfg1
-rw-r--r--roles/base/tasks/main.yml2
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/base/files/06_preserve_hostname.cfg b/roles/base/files/06_preserve_hostname.cfg
new file mode 100644
index 0000000..64330c7
--- /dev/null
+++ b/roles/base/files/06_preserve_hostname.cfg
@@ -0,0 +1 @@
+preserve_hostname: true
diff --git a/roles/base/tasks/main.yml b/roles/base/tasks/main.yml
index ccc0a13..7fb59ac 100644
--- a/roles/base/tasks/main.yml
+++ b/roles/base/tasks/main.yml
@@ -13,7 +13,7 @@
- service: name=chronyd state=running enabled=yes
-- copy: dest=/etc/cloud/cloud.cfg.d/06_preserve_hostname.cfg content='preserve_hostname: true'
+- copy: dest=/etc/cloud/cloud.cfg.d/06_preserve_hostname.cfg src=06_preserve_hostname.cfg
- name: install firewalld on centos7
yum: pkg=firewalld state=installed