summaryrefslogtreecommitdiff
path: root/roles
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-10-14 11:35:55 +0300
committerLars Wirzenius <liw@liw.fi>2017-10-14 11:35:55 +0300
commit47a77932f3be5717a0427bbf7b4d9653e840c574 (patch)
tree16f3c4b7e2445afcf9496c9f9bd0bd2181c3dbf1 /roles
parent1edcfd5114b4ba496cf36d031184c1ef83542f7e (diff)
downloaddebian-ansible-47a77932f3be5717a0427bbf7b4d9653e840c574.tar.gz
Fix: set ownership, perms for /etc/hostname
Diffstat (limited to 'roles')
-rw-r--r--roles/sane_debian_system/tasks/env.yml3
1 files changed, 3 insertions, 0 deletions
diff --git a/roles/sane_debian_system/tasks/env.yml b/roles/sane_debian_system/tasks/env.yml
index 8aec003..fb0c78f 100644
--- a/roles/sane_debian_system/tasks/env.yml
+++ b/roles/sane_debian_system/tasks/env.yml
@@ -6,6 +6,9 @@
copy:
content: "{{ hostname }}"
dest: /etc/hostname
+ owner: root
+ group: root
+ mode: 0444
when: hostname is defined
- name: add hostname to /etc/hosts