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
|
2022-07-09 16:19:58 +02:00
|
|
|
# tools for android-smartphones/LineageOS
|
|
|
|
- heimdall-flash
|
|
|
|
- android-tools-adb
|
|
|
|
- android-tools-fastboot
|
|
|
|
- android-tools-mkbootimg
|
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
|
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
|
2022-07-09 16:19:58 +02:00
|
|
|
update_cache: yes
|
|
|
|
install_recommends: no
|
2022-07-08 14:25:48 +02: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
|
2022-07-25 14:38:57 +02:00
|
|
|
- com.nextcloud
|
2022-07-12 10:41:41 +02:00
|
|
|
- com.vscodium.codium
|
|
|
|
- com.github.wwmm.pulseeffects
|
|
|
|
- org.ksnip.ksnip
|
|
|
|
- org.gnome.Evolution
|
|
|
|
- com.github.tchx84.Flatseal
|
2022-10-04 17:25:36 +02:00
|
|
|
- tv.kodi.Kodi
|
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-10 14:11:20 +02:00
|
|
|
After=multi-user.target network.target network-online.target tor.service
|
2023-08-09 17:16:37 +02:00
|
|
|
Requires=multi-user.target network.target network-online.target nss-lookup.target docker.service systemd-resolved.service sshd.service tor.service
|
2023-07-18 13:50:48 +02:00
|
|
|
|
|
|
|
[Service]
|
2023-08-09 19:04:21 +02:00
|
|
|
Type=simple
|
2023-07-18 13:50:48 +02:00
|
|
|
User=root
|
2023-08-09 18:55:55 +02:00
|
|
|
RemainAfterExit=true
|
2023-07-26 09:48:46 +02:00
|
|
|
ExecStart=bash -x /usr/local/sbin/mint-config-update.sh
|
2023-07-18 13:50:48 +02:00
|
|
|
ExecStop=bash -c "until ! test -e /run/mint-config-update.sh.lock; do sleep 2; done"
|
2023-08-10 13:51:00 +02:00
|
|
|
KillSignal=SIGCONT
|
2023-08-04 09:22:19 +02:00
|
|
|
TimeoutStopSec=1800
|
2023-08-10 14:06:19 +02:00
|
|
|
Restart=no
|
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'
|
|
|
|
command: systemctl enable mint-config-update.service
|
|
|
|
args:
|
|
|
|
creates: /etc/systemd/system/multi-user.target.wants/mint-config-update.service
|
|
|
|
|
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
|
|
|
|
|
2023-02-09 14:51:22 +01:00
|
|
|
- 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
|