Skip to content

Commit 4d5a636

Browse files
committed
Set permissions of resolv.conf explicitly
In some cases the file ends up with a mode of 0660, which prevents non-root users from performing name lookups. I don't think this role is necessarily at fault in those cases, but it doesn't hurt to set the permissions explicitly. This change sets the permissions to 0644.
1 parent 9fc585c commit 4d5a636

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

tasks/main.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
---
2-
#Configure resolv.conf
2+
# Configure resolv.conf
33
- name: Configure resolv.conf
4-
template: src=resolv.conf.j2 dest=/etc/resolv.conf
4+
template:
5+
src: resolv.conf.j2
6+
dest: /etc/resolv.conf
7+
mode: 0644

0 commit comments

Comments
 (0)