diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-10-14 11:35:55 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-10-14 11:35:55 +0300 |
commit | 47a77932f3be5717a0427bbf7b4d9653e840c574 (patch) | |
tree | 16f3c4b7e2445afcf9496c9f9bd0bd2181c3dbf1 | |
parent | 1edcfd5114b4ba496cf36d031184c1ef83542f7e (diff) | |
download | debian-ansible-47a77932f3be5717a0427bbf7b4d9653e840c574.tar.gz |
Fix: set ownership, perms for /etc/hostname
-rw-r--r-- | roles/sane_debian_system/tasks/env.yml | 3 |
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 |