Explicit permissions

Signed-off-by: Yohann D'ANELLO <ynerant@crans.org>
This commit is contained in:
2021-03-18 00:25:44 +01:00
parent b0d8cdaf72
commit 57b83cb58e
24 changed files with 121 additions and 39 deletions

View File

@ -4,16 +4,22 @@
template:
src: 'logind.conf.j2'
dest: '/etc/systemd/logind.conf'
become: yes
owner: root
group: root
mode: 0644
- name: Create autologin directory on tty1
file:
path: '/etc/systemd/system/getty@tty1.service.d'
state: directory
become: yes
owner: root
group: root
mode: 0755
- name: Copy autologin template file
template:
src: 'override.conf.j2'
dest: '/etc/systemd/system/getty@tty1.service.d/override.conf'
become: yes
owner: root
group: root
mode: 0644