fix: set sddm permissions after installation
This commit is contained in:
parent
8d8c7c204d
commit
81ccc6cab0
@ -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:
|
||||||
|
@ -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
|
||||||
|
Reference in New Issue
Block a user