-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathF40_post_install.yml
183 lines (182 loc) · 4.89 KB
/
F40_post_install.yml
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
- hosts: localhost
vars:
gpgkey_list:
- https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-free-fedora-2020
- https://rpmfusion.org/keys?action=AttachFile&do=get&target=RPM-GPG-KEY-rpmfusion-nonfree-fedora-2020
group_list:
- docker
- libvirt
- vboxsf
- vboxusers
become: yes
tasks:
# REPOSITORIES
- name: Import GPG keys into the RPM DB
rpm_key:
key: "{{ item }}"
loop: "{{ gpgkey_list }}"
- name: Install RPMFusion free repository
package:
name: https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ansible_distribution_major_version}}.noarch.rpm
- name: Install RPMFusion Non-free repository
package:
name: https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ansible_distribution_major_version}}.noarch.rpm
- name: Add the flathub flatpak repository remote
community.general.flatpak_remote:
name: flathub
flatpakrepo_url: https://dl.flathub.org/repo/flathub.flatpakrepo
# PACKAGES - Group names loosely follow submenu names in KDE's app launcher
- name: Install Development tools
package:
name:
- docker-compose
- git
- java-latest-openjdk-devel
- java-latest-openjdk-javadoc
- meld
- moby-engine
- npm
- python3-devel
- python3-ipython
- python3-virtualenv
- ShellCheck
- vim
- xdotool # Interact with X11 from shell scripts
- yarnpkg
- name: Install Gaming / emulation apps
package:
name:
- q4wine
- steam
- wine
- winetricks
- name: Install Graphics apps
package:
name:
- flameshot
- name: Install Hardware drivers & monitoring tools
package:
name:
- dkms
- hddtemp
- htop
- iftop
- iotop
- kernel-devel
- kmod-wl
- lm_sensors
- lshw
- nvtop
- sysstat
- name: Install Internet / networking applications
package:
name:
- chromium
- filezilla
- finger
- gnome-nettool
- ktorrent
- remmina
- wireguard-tools
- wireshark
- name: Install Multimedia applications
package:
name:
- asciinema
- simplescreenrecorder
- smplayer
- name: Install System tools / apps
package:
name:
- akmod-VirtualBox
- beesu
- clamav
- clamav-update
- cockpit
- cockpit-machines
- cockpit-selinux
- exfatprogs
- grsync
- grub-customizer
- kcron
- ksystemlog
- policycoreutils-gui # Selinux policy GUI
- qemu-kvm
- stress
- virt-manager
- VirtualBox
- VirtualBox-server
- name: Install Utilities / misc. apps
package:
name:
- detox
- gtkhash
- hunspell-es # Spanish files for LO's spell checker
- kate
- kbackup
- keepassxc
- krename
- kruler
- moreutils-parallel
- ncdu
- nfoview
- papirus-icon-theme
- ranger
- tldr
- unrar
- name: Uninstall unused applications present in the KDE Spin
package:
name:
- akregator
- dragon
- elisa-player
- kaddressbook
- kde-connect
- kmahjongg
- kmail
- kmines
- kmouth
- konversation
- korganizer
- kpat
- krdc
- krfb
- ktnef
- kwrite
- neochat
- plasma-welcome
- skanpage
- spectacle
state: absent
- name: Autoremove unneeded packages installed as dependencies
package:
autoremove: yes
- name: Install Flatpak management tools
community.general.flatpak:
name:
- com.github.tchx84.Flatseal
- io.github.flattool.Warehouse
# GROUPS
- name: Ensure admin groups exist
group:
name: "{{ item }}"
loop: "{{ group_list }}"
# USERS
- name: Add the local user to admin groups
user:
name: "{{ ansible_env.SUDO_USER }}"
groups: "{{ item }}"
append: yes
loop: "{{ group_list }}"
- name: Create a 2048-bit SSH key for the local user in $HOME/.ssh/id_rsa
user:
name: "{{ ansible_env.SUDO_USER }}"
generate_ssh_key: yes
ssh_key_bits: 2048
ssh_key_file: .ssh/id_rsa
# SERVICES
- name: Enable Cockpit autostart
systemd_service:
name: cockpit.socket
state: started
enabled: true