summaryrefslogtreecommitdiffstats
path: root/roles
diff options
context:
space:
mode:
authorMichael Scherer <misc@zarb.org>2014-12-12 19:06:11 +0100
committerMichael Scherer <misc@zarb.org>2014-12-12 19:06:11 +0100
commitd116b82ad624dcc62a0de212a66e17b4d62269c7 (patch)
tree11fdef551117ebb3a86dafb2ed9511258aa1bc6e /roles
parent17362d6bf9ff6b81119cd5df0390f085eb90c77f (diff)
Cannot use yaml in a string in a yaml document, so use a external file instead
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