linux-mint/mint.yml

219 lines
6.3 KiB
YAML
Raw Normal View History

2022-07-08 14:25:48 +02:00
---
- name: Mint Packages
hosts: all
tasks:
2022-07-09 16:19:58 +02:00
- name: Install Basic Packages
apt:
name:
# powersave
- tlp
- tlp-rdw
# Speed up program start
- preload
# mediacodecs and fonts
2022-07-31 17:22:20 +02:00
- mint-meta-codecs
2022-07-09 16:19:58 +02:00
- ubuntu-restricted-extras
- libavcodec-extra
- libdvd-pkg
2022-07-09 18:08:36 +02:00
- fonts-terminus
2022-07-09 16:19:58 +02:00
# share desk
- x11vnc
# useful other stuff
- spectre-meltdown-checker
- pwgen
- arj
- p7zip
- unace
- unadf
- bvi
- fdupes
- radeontop
- debootstrap
- geoip-bin
2022-07-18 14:17:17 +02:00
- sshfs
2022-07-18 14:31:12 +02:00
- speedtest-cli
2024-05-20 22:03:14 +02:00
- gnome-characters
2022-07-09 16:19:58 +02:00
# tools for android-smartphones/LineageOS
- heimdall-flash
- android-tools-adb
- android-tools-fastboot
2022-07-11 17:57:05 +02:00
# OnlineBanking
- hibiscus
2022-07-12 11:13:14 +02:00
# dconf-gui
- dconf-editor
2022-07-17 20:48:21 +02:00
# Media
2023-02-02 14:40:47 +01:00
- vlc
2022-07-17 20:57:20 +02:00
- gthumb
2022-07-17 20:55:02 +02:00
- mediainfo-gui
2022-07-17 20:48:21 +02:00
- easytag
- audacity
2022-07-17 20:53:25 +02:00
- asunder
2022-07-17 20:59:02 +02:00
- mediathekview
2022-07-17 21:01:41 +02:00
- audacious
2023-01-11 18:03:18 +01:00
- guvcview
2024-09-08 17:09:11 +02:00
- easyeffects
- calf-plugins
2022-07-19 11:09:38 +02:00
# retro
- dosbox
2022-07-31 18:07:46 +02:00
# brennen
2022-07-22 15:17:43 +02:00
- brasero
2022-07-31 18:07:46 +02:00
# misc
2022-07-31 18:35:29 +02:00
- openoffice.org-hyphenation
2023-02-28 11:18:27 +01:00
- gpodder
2023-07-19 15:38:51 +02:00
- wireguard
- wireguard-tools
2023-07-19 15:39:37 +02:00
- tinyproxy
2023-10-13 14:46:22 +02:00
- hardinfo
2024-03-29 14:48:36 +01:00
- rpi-imager
2024-09-16 21:41:30 +02:00
- redshift-gtk
2024-09-07 17:13:33 +02:00
# virtualization
- virtualbox
2024-09-07 20:28:56 +02:00
- virtualbox-qt
2024-09-08 16:00:40 +02:00
- virtualbox-guest-additions-iso
2024-10-27 23:31:40 +01:00
# screenshot
- flameshot
2022-07-09 16:19:58 +02:00
update_cache: yes
install_recommends: no
2024-03-29 14:48:36 +01:00
2022-07-12 10:41:41 +02:00
- name: Install Flatpaks
community.general.flatpak:
name:
2022-08-01 14:47:51 +02:00
- org.gtk.Gtk3theme.Mint-Y-Dark
2022-07-12 10:41:41 +02:00
- org.signal.Signal
2024-09-07 17:06:41 +02:00
- com.nextcloud.desktopclient.nextcloud
2022-07-12 10:41:41 +02:00
- com.vscodium.codium
- org.gnome.Evolution
- com.github.tchx84.Flatseal
2022-10-04 17:25:36 +02:00
- tv.kodi.Kodi
2024-09-09 11:51:09 +02:00
- im.riot.Riot
2022-07-12 10:59:51 +02:00
state: present
method: system
2022-07-12 10:41:41 +02:00
2023-07-18 13:50:48 +02:00
- name: mint-config-update
blockinfile:
path: /etc/systemd/system/mint-config-update.service
create: yes
mode: 0444
owner: root
group: root
marker: "# {mark} ANSIBLE MANAGED BLOCK"
block: |
[Unit]
Description=Mint Upgrade Service
2023-08-11 13:34:28 +02:00
# star after and on shutdown dont stop before script has terminated
2023-08-11 11:19:04 +02:00
After=network.target dnscrypt-proxy.service systemd-resolved.service sshd.service tor@default.service
2023-08-11 13:34:28 +02:00
2023-07-18 13:50:48 +02:00
[Service]
2023-08-10 14:25:48 +02:00
Type=oneshot
2023-07-18 13:50:48 +02:00
User=root
2023-07-26 09:48:46 +02:00
ExecStart=bash -x /usr/local/sbin/mint-config-update.sh
2023-08-11 13:34:28 +02:00
# Wait for "normal" exit of the script SIGCONT doesnt kill/terminate it
2023-08-10 13:51:00 +02:00
KillSignal=SIGCONT
2023-08-11 13:34:28 +02:00
# wait a maximum of 30 minutes
2023-08-04 09:22:19 +02:00
TimeoutStopSec=1800
2023-07-26 09:48:46 +02:00
StandardOutput=append:/var/log/mint-config-update.sh.log
StandardError=append:/var/log/mint-config-update.sh.log
2023-07-18 13:50:48 +02:00
2023-07-18 15:58:12 +02:00
[Install]
2023-07-18 16:19:42 +02:00
WantedBy=multi-user.target
2023-07-18 13:50:48 +02:00
- name: 'add mint-config-update to startup'
2023-08-11 11:20:42 +02:00
command: systemctl enable mint-config-update.service
2023-07-18 13:50:48 +02:00
args:
2023-08-11 11:19:48 +02:00
creates: /etc/systemd/system/multi-user.target.wants/mint-config-update.service
2023-07-18 13:50:48 +02:00
2022-07-09 16:40:40 +02:00
- name: remove dhcpcd because NetworkManager is doing the job
2022-07-09 16:48:52 +02:00
command: systemctl disable dhcpcd
2022-07-08 14:25:48 +02:00
args:
removes: /etc/systemd/system/multi-user.target.wants/dhcpcd.service
2022-07-12 10:41:41 +02:00
2022-07-22 13:01:57 +02:00
- name: /etc/default/grub nonquiet nosplash
ansible.builtin.lineinfile:
path: /etc/default/grub
regexp: '^GRUB_CMDLINE_LINUX_DEFAULT=.*$'
line: "GRUB_CMDLINE_LINUX_DEFAULT=\"nosplash\""
backup: yes
notify:
- update-grub
2022-07-12 10:41:41 +02:00
- name: enable Mint Autoupdate
command: systemctl enable mintupdate-automation-upgrade.timer
args:
creates: /etc/systemd/system/timers.target.wants/mintupdate-automation-upgrade.timer
- name: enable Mint Autoupdate Cleanup
command: systemctl enable mintupdate-automation-autoremove.timer
args:
creates: /etc/systemd/system/timers.target.wants/mintupdate-automation-autoremove.timer
2022-07-21 14:43:51 +02:00
2022-07-22 09:57:23 +02:00
- name: mint-config-update
ansible.builtin.get_url:
2022-07-22 10:07:19 +02:00
url: https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint-config-update.sh
2022-07-22 10:36:00 +02:00
dest: /usr/local/sbin/mint-config-update.sh
2022-07-22 09:57:23 +02:00
mode: '0555'
owner: root
group: root
force: yes
backup: yes
2022-07-22 09:52:18 +02:00
- name: mint-config-update startmenu
2022-07-22 09:51:59 +02:00
ansible.builtin.get_url:
url: https://gitea.ds9.dedyn.io/olli/linux-mint/raw/branch/main/mint-config-update.desktop
dest: /usr/share/applications/mint-config-update.desktop
mode: '0444'
owner: root
group: root
force: yes
2022-07-21 16:40:47 +02:00
- name: gtc-media-compress
ansible.builtin.get_url:
url: https://gitea.ds9.dedyn.io/olli/gtc-media-compress/raw/branch/main/gtc-media-compress.sh
2022-07-21 16:46:56 +02:00
dest: /usr/local/bin/gtc-media-compress.sh
2022-07-21 16:40:47 +02:00
mode: '0555'
owner: root
group: root
force: yes
2022-07-21 16:49:01 +02:00
backup: yes
2022-07-21 16:40:47 +02:00
- name: gtc-media-compress startmenu
ansible.builtin.get_url:
2022-07-21 16:46:56 +02:00
url: https://gitea.ds9.dedyn.io/olli/gtc-media-compress/raw/branch/main/gtc-media-compress.desktop
2022-07-21 16:40:47 +02:00
dest: /usr/share/applications/gtc-media-compress.desktop
mode: '0444'
owner: root
group: root
force: yes
2022-07-21 17:06:05 +02:00
2022-08-03 14:04:40 +02:00
- name: Allow Mint warpinator in firewall to tcp port 42000
2022-08-03 13:58:48 +02:00
community.general.ufw:
rule: allow
port: '42000'
proto: tcp
2022-08-03 14:04:40 +02:00
- name: Allow Mint warpinator in firewall to udp port 42000
community.general.ufw:
rule: allow
port: '42000'
proto: udp
2024-09-07 17:13:33 +02:00
# no more pulse since Mint 22
#- name: force samplerate to 44100 to avoid problems with additional audio hardware for live streams
# blockinfile:
# path: /etc/pulse/daemon.conf
# owner: root
# group: root
# create: no
# marker: "; {mark} ANSIBLE MANAGED BLOCK"
# block: |
# default-sample-rate = 44100
# alternate-sample-rate = 44100
# backup: yes
2022-07-22 13:01:57 +02:00
handlers:
- name: update-grub
ansible.builtin.shell: update-grub