This repository has been archived on 2024-12-15. You can view files and clone it, but cannot push or open issues or pull requests.
ansible-machine-setup/roles/xorg/tasks/main.yaml

65 lines
1.2 KiB
YAML

---
- name: install packages
package:
name: "{{ item }}"
state: latest
loop:
- xorg
- xorg-server
- xorg-xinit
- xorg-xsetroot
- xf86-video-intel
- xf86-video-fbdev
- sddm
- i3-wm
- i3status
- xautolock
- dmenu
- alacritty
- flameshot
- unclutter
- name: install AUR packages
kewlfft.aur.aur:
name: "{{ item }}"
state: latest
become: yes
become_user: "{{ aur_builder.name }}"
loop:
- i3lock-fancy-multimonitor
- name: configure sddm
ini_file:
path: /etc/sddm.conf.d/uid.conf
section: Users
option: HideShells
value: /usr/bin/nologin,/sbin/nologin,/bin/false
mode: 0644
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
systemd:
name: sddm
enabled: yes
- name: set keyboard layout
command:
cmd: localectl --no-convert set-x11-keymap de pc105 nodeadkeys
creates: /etc/X11/xorg.conf.d/00-keyboard.conf