-
Notifications
You must be signed in to change notification settings - Fork 3
/
packages.yml
executable file
·216 lines (193 loc) · 5.79 KB
/
packages.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
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
#!/usr/bin/env ansible-playbook
---
- name: Setup_my_favorite_packages
hosts: rhel_hosts fedora_hosts
tasks:
- name: RPM_fusion_keys
ansible.builtin.rpm_key:
state: present
key: "{{ item }}"
loop:
- 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
when: ansible_distribution == 'Fedora'
- name: RPM_fusion_repo
ansible.builtin.dnf:
state: present
name:
- https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-{{ ansible_distribution_major_version }}.noarch.rpm
- https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-{{ ansible_distribution_major_version }}.noarch.rpm
when: ansible_distribution == 'Fedora'
- name: Useful_packages
ansible.builtin.yum:
name:
- bash-completion
- pciutils
- unzip
- vim
- wget
- numactl
- sos
- iotop
- procps-ng
- net-tools
- nmap
- tcpdump
- traceroute
# - wireshark - loads X!
- bind-utils # for dig
- rsync
# - ntpdate
- lsof
# - libselinux-python # needed for lots of ansible scripts
- tree
- dstat
- tracer-common
- podman
- buildah
- skopeo
- tuned
- lshw
- sysstat
- nmstate
- name: RHEL8_packages
ansible.builtin.dnf:
name:
- ansible-core
when: ansible_distribution == 'RedHat' and ansible_distribution_major_version | int >= 8
- name: Pre_rhel8_packages
ansible.builtin.dnf:
name:
- ansible
- atop
- iftop
- nethogs
- rpmconf
when: ansible_distribution == 'Fedora' or (ansible_distribution == 'RedHat' and ansible_distribution_major_version | int < 8)
- name: Tracer_package_dnf
ansible.builtin.dnf:
name:
- python3-dnf-plugin-tracer
when: ansible_distribution == 'Fedora'
- name: Get_repos
ansible.builtin.command:
cmd: yum repolist --enabled
register: repolist
changed_when: false
# args:
# warn: false
- name: Packages_if_epel
ansible.builtin.yum:
name:
- tracer
when:
- repolist.stdout.find("epel/x86_64") != -1
- ansible_distribution == 'RedHat'
- name: Packages_if_fedora
ansible.builtin.dnf:
name:
- dnf-plugin-system-upgrade
- remove-retired-packages
- rpmfusion-free-release-tainted
- cpu-x
- linux-system-roles
when: ansible_distribution == 'Fedora'
- name: Copy_top_config
ansible.builtin.copy:
src: toprc
dest: /root/.toprc
mode: a+rw
- name: Signal_repo # https://download.opensuse.org/repositories/network:/im:/signal/Fedora_37/network:im:signal.repo
ansible.builtin.yum_repository:
name: network_im_signal
description: "Signal Messaging Devel Project"
baseurl: https://download.opensuse.org/repositories/network:/im:/signal/Fedora_$releasever/
gpgcheck: 1
gpgkey: https://download.opensuse.org/repositories/network:/im:/signal/Fedora_$releasever/repodata/repomd.xml.key
when:
- "'desktops' in group_names"
- ansible_distribution == 'Fedora'
- name: Desktop_packages
ansible.builtin.dnf:
name:
- network-manager-applet
- baobab
- signal-desktop
- hexchat
- filezilla
- krb5-auth-dialog
- krb5-workstation
- eosrei-emojione-fonts
- google-android-emoji-fonts
- google-noto-emoji-color-fonts
- google-noto-emoji-fonts
# - pavucontrol
# - paprefs
- gimp
- rpm-build
- virt-manager
- tito # git->rpm packager
- zoom
- vlc
- libaacs
- libbluray
- libbluray-bdj
- libbdplus
- libreoffice
- kde-connect
- virt-viewer
- youtube-dl
- yt-dlp # youtube-dl fork
- java-latest-openjdk
- pylint
- pandoc # convert text formats
- k3b
- g++
- ImageMagick
- mkvtoolnix-gui
- mkvtoolnix
- snapd
when: "'desktops' in group_names"
- name: Makemkv ripper
community.general.flatpak:
name: com.makemkv.MakeMKV
state: present
when: "'desktops' in group_names"
# Needs more setup: https://forum.doom9.org/showthread.php?t=176924
# https://vlc-bluray.whoknowsmy.name/
- name: KDEconnect_firewall
ansible.posix.firewalld:
service: kdeconnect
state: enabled
permanent: true
immediate: true
- name: Desktop_Snaps # needs snapd package above
community.general.snap:
name:
- plex-desktop
# - planify
when: "'desktops' in group_names"
- name: Webex
import_playbook: webex.yml
when: "'desktops' in group_names"
- name: Rambox
import_playbook: rambox.yml
when: "'desktops' in group_names"
- name: VScode
import_playbook: vscode.yml
when: "'desktops' in group_names"
# - name: Teams
# import_playbook: teams.yml
# when: "'desktops' in group_names"
- name: Spotify
import_playbook: spotify.yml
when: "'desktops' in group_names"
- name: Git
import_playbook: git.yml
- name: Xsos
import_playbook: xsos.yml
when: "'servers' not in group_names"
- name: Omg
import_playbook: omg.yml
when: "'servers' not in group_names"
...