amin-users: fix perms on sudoers file

This commit is contained in:
Jérémy Lecour 2017-01-03 16:08:45 +01:00 committed by Jérémy Lecour
parent 04ccca18f2
commit 475ccf3bd1
1 changed files with 6 additions and 0 deletions

View File

@ -119,6 +119,12 @@
validate: '/usr/sbin/visudo -cf %s'
register: copy_sudoers_evolinux
- name: Verify Evolinux sudoers file permissions
file:
path: /etc/sudoers.d/evolinux
mode: 0440
state: file
- name: Add user in sudoers file for '{{ user.name }}'
replace:
dest: /etc/sudoers.d/evolinux