ansible-machine-setup/roles/xorg/tasks/main.yaml

53 lines
1.1 KiB
YAML
Raw Normal View History

2021-01-30 11:55:40 +00:00
---
- name: install packages
package:
2021-03-04 12:28:46 +00:00
name: "{{ item }}"
state: latest
2021-02-07 12:51:50 +00:00
loop:
- xorg
- xorg-server
- xorg-xinit
2021-02-07 14:03:40 +00:00
- xorg-xsetroot
2021-02-07 12:51:50 +00:00
- xf86-video-intel
- xf86-video-fbdev
- sddm
- i3-wm
- i3status
2021-03-04 12:28:46 +00:00
- xautolock
- i3lock
2021-02-07 12:51:50 +00:00
- dmenu
- alacritty
2021-01-30 11:55:40 +00:00
2021-02-07 14:11:39 +00:00
- name: configure sddm
ini_file:
2021-03-04 12:28:46 +00:00
path: /etc/sddm.conf.d/uid.conf
section: Users
option: HideShells
value: /usr/bin/nologin,/sbin/nologin,/bin/false
mode: 0644
create: yes
2021-02-07 14:11:39 +00:00
2021-01-30 11:55:40 +00:00
- name: activate display manager
systemd:
2021-03-04 12:28:46 +00:00
name: sddm
enabled: yes
2021-01-30 11:55:40 +00:00
- name: set keyboard layout
command:
2021-03-04 12:28:46 +00:00
cmd: localectl --no-convert set-x11-keymap de pc105 nodeadkeys
creates: /etc/X11/xorg.conf.d/00-keyboard.conf
2021-03-06 14:51:56 +00:00
- name: install i3 config
become_user: "{{ account.name }}"
copy:
src: config/i3/config
dest: "/home/{{ account.name }}/.config/i3/config"
force: no
- name: install i3status config
become_user: "{{ account.name }}"
copy:
src: config/i3status/config
dest: "/home/{{ account.name }}/.config/i3status/config"
force: yes