linux-mint/mint.yml

207 lines
5.9 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
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
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
After=multi-user.target network.target network-online.target nss-lookup.target systemd-resolved docker.service sshd.service
Requires=multi-user.target network.target network-online.target nss-lookup.target systemd-resolved docker.service sshd.service
[Service]
Type=simple
User=root
RemainAfterExit=true
ExecStart=bash "/usr/local/sbin/mint-config-update.sh"
ExecStop=bash -c "until ! test -e /run/mint-config-update.sh.lock; do sleep 2; done"
TimeoutStopSec=7200
2023-07-18 14:09:11 +02:00
notify:
- Restart mint-config-update
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
- 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:
2023-07-18 14:10:25 +02:00
- name: Restart mint-config-update
2023-07-18 13:50:48 +02:00
service:
2023-07-18 14:10:25 +02:00
name: mint-config-update
2023-07-18 13:50:48 +02:00
state: restarted
2022-07-22 13:01:57 +02:00
- name: update-grub
ansible.builtin.shell: update-grub