fix: set sddm permissions after installation

This commit is contained in:
Michael Mandl 2021-10-25 08:33:32 +02:00
parent 8d8c7c204d
commit 81ccc6cab0
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 17 additions and 17 deletions

View file

@ -1,5 +1,5 @@
--- ---
- name: setup user account - name: setup user account {{ username }}
user: user:
name: "{{ username }}" name: "{{ username }}"
password: "{{ password }}" password: "{{ password }}"
@ -75,22 +75,6 @@
dest: "/home/{{ account.name }}/.face.icon" dest: "/home/{{ account.name }}/.face.icon"
mode: "0644" mode: "0644"
- name: grant sddm read permission to home
acl:
path: "/home/{{ account.name }}/"
entity: sddm
etype: user
permissions: x
state: present
- name: grant sddm read permission user icon
acl:
path: "/home/{{ account.name }}/.face.icon"
entity: sddm
etype: user
permissions: r
state: present
- name: ensure i3 config-dir exists - name: ensure i3 config-dir exists
become_user: "{{ account.name }}" become_user: "{{ account.name }}"
file: file:

View file

@ -37,6 +37,22 @@
mode: 0644 mode: 0644
create: yes create: yes
- name: grant sddm read permission to {{ account.name }} home
acl:
path: "/home/{{ username }}/"
entity: sddm
etype: user
permissions: x
state: present
- name: grant sddm read permission user icon
acl:
path: "/home/{{ username }}/.face.icon"
entity: sddm
etype: user
permissions: r
state: present
- name: activate display manager - name: activate display manager
systemd: systemd:
name: sddm name: sddm