blob: dbddcd44c38cc3c6ec524e17006f0d4c7e9d7dc7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
|
- name: install packages
dnf:
name: '{{ linux_desktop_packages }}'
exclude: '{{ linux_desktop_excluded_packages }}'
state: present
# Sticking with tuned for now. On my thinkpad, the power-profiles-daemon sets the
# CPU governor to "performance" in the "power-save" profile!
- name: mask power-profiles-daemon
systemd:
name: power-profiles-daemon
state: stopped
masked: yes
- name: make sure tuned wasn't killed by power-profiles-daemon
systemd:
name: tuned
state: started
- name: enable GuC for intel card
copy:
content: |
options i915 enable_guc=2 enable_fbc=1
dest: /etc/modprobe.d/i915.conf
register: i915_options
- name: warn if reboot needed
fail:
msg: A reboot is needed to apply settings to i915 graphics module.
when: i915_options.changed
ignore_errors: yes
- name: set default target to graphical
file:
src: /usr/lib/systemd/system/graphical.target
dest: /etc/systemd/system/default.target
state: link
- name: generate gdm configuration
template:
src: etc/gdm/custom.conf.j2
dest: /etc/gdm/custom.conf
notify: restart gdm
- name: check if graphical target is active
command: systemctl is-active graphical.target
register: graphical_target
changed_when: false
failed_when: false
- name: start display manager
command: systemctl isolate graphical.target
when: graphical_target.rc != 0
notify: restart gdm
- name: enable fractional scaling
copy:
src: '{{ item[1:] }}'
dest: '{{ item }}'
loop:
- /etc/dconf/db/local.d/00-hidpi
- /etc/dconf/db/local.d/locks/hidpi
notify: update dconf
- name: add local dconf settings
template:
src: etc/dconf/db/local.d/00-gnome.j2
dest: /etc/dconf/db/local.d/00-gnome
notify: update dconf
- name: add flathub flatpak repository
flatpak_remote:
name: flathub
flatpakrepo_url: '{{ linux_desktop_flathub_repo }}'
state: present
- name: install flatpak applications
flatpak:
name: '{{ item }}'
state: present
loop: '{{ linux_desktop_flatpaks }}'
- name: set up flatpak-update timer
include_role:
name: systemd_timer
vars:
timer_name: flatpak-update
timer_description: Update flatpaks
timer_after: network.target
timer_on_calendar: '{{ linux_desktop_flatpak_update_on_calendar }}'
timer_exec: flatpak update -y
- name: configure flatpak overrides
command: flatpak override {{ item.key }} {{ item.value }}
changed_when: no
loop: '{{ linux_desktop_flatpak_overrides | dict2items }}'
- name: create /usr/local/share/thumbnailers
file:
path: /usr/local/share/thumbnailers
state: directory
# see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=973942
- name: patch totem thumbnailer to support large mp4 files
copy:
src: usr/local/share/thumbnailers/totem.thumbnailer
dest: /usr/local/share/thumbnailers/totem.thumbnailer
- import_tasks: freeipa.yml
|