2022-10-17 14:51:39 +02:00
|
|
|
---
|
2022-11-17 13:23:37 +01:00
|
|
|
- name: Kodi Setup
|
2022-10-17 14:51:39 +02:00
|
|
|
hosts: all
|
|
|
|
tasks:
|
|
|
|
|
|
|
|
- name: Install Basic Packages
|
|
|
|
apt:
|
|
|
|
name:
|
2024-10-07 11:18:01 +02:00
|
|
|
# # share desk
|
|
|
|
# - x11vnc
|
2022-10-17 14:51:39 +02:00
|
|
|
# tools for android-smartphones/LineageOS
|
|
|
|
- heimdall-flash
|
2022-12-15 12:22:31 +01:00
|
|
|
- adb
|
|
|
|
- fastboot
|
2024-04-02 14:53:35 +02:00
|
|
|
- mkbootimg
|
2024-04-04 14:22:27 +02:00
|
|
|
# desktop specific
|
2024-10-07 11:18:01 +02:00
|
|
|
# - cinnamon
|
|
|
|
# - cinnamon-l10n
|
|
|
|
# - gnome-terminal
|
|
|
|
# - lightdm
|
|
|
|
# - xserver-xorg
|
|
|
|
# - xinit
|
|
|
|
# - x11-xserver-utils
|
|
|
|
# - dbus-x11
|
2022-10-19 12:48:28 +02:00
|
|
|
- dconf-cli
|
2022-12-23 15:59:58 +01:00
|
|
|
- dphys-swapfile
|
2024-10-07 11:18:01 +02:00
|
|
|
# - lightdm-autologin-greeter
|
2024-04-03 16:48:13 +02:00
|
|
|
- tsdecrypt
|
2024-04-03 16:58:42 +02:00
|
|
|
- x264
|
|
|
|
- x265
|
2024-04-10 15:49:55 +02:00
|
|
|
- flatpak
|
2024-10-02 15:37:16 +02:00
|
|
|
- ttf-mscorefonts-installer
|
2024-10-04 14:58:39 +02:00
|
|
|
- fonts-terminus
|
2024-10-07 11:18:01 +02:00
|
|
|
# - mint-y-icons
|
2024-10-02 15:37:16 +02:00
|
|
|
# kodi
|
|
|
|
- kodi21
|
2024-10-04 14:58:39 +02:00
|
|
|
- kodi21-pvr-iptvsimple
|
|
|
|
- kodi21-vfs-sftp
|
|
|
|
- kodi21-game-libretro
|
|
|
|
- kodi21-peripheral-joystick
|
|
|
|
# useful other stuff
|
|
|
|
- pwgen
|
|
|
|
- arj
|
|
|
|
- p7zip
|
|
|
|
- unace
|
|
|
|
- unadf
|
|
|
|
- bvi
|
|
|
|
- fdupes
|
|
|
|
- radeontop
|
|
|
|
- debootstrap
|
|
|
|
- geoip-bin
|
|
|
|
- sshfs
|
|
|
|
- speedtest-cli
|
|
|
|
- gnome-characters
|
2024-10-07 11:18:01 +02:00
|
|
|
# - bluetooth
|
|
|
|
# - blueman
|
2024-10-04 14:58:39 +02:00
|
|
|
# dconf-gui
|
|
|
|
- dconf-editor
|
|
|
|
# Media
|
|
|
|
- vlc
|
|
|
|
- gthumb
|
|
|
|
- mediainfo-gui
|
|
|
|
- easytag
|
|
|
|
- audacity
|
|
|
|
- asunder
|
2024-10-07 11:18:01 +02:00
|
|
|
# - mediathekview
|
2024-10-04 14:58:39 +02:00
|
|
|
- audacious
|
|
|
|
- guvcview
|
|
|
|
- easyeffects
|
|
|
|
- calf-plugins
|
|
|
|
# retro
|
|
|
|
- dosbox
|
|
|
|
# brennen
|
|
|
|
- brasero
|
|
|
|
# misc
|
|
|
|
- gpodder
|
|
|
|
- wireguard
|
|
|
|
- wireguard-tools
|
|
|
|
- tinyproxy
|
|
|
|
- hardinfo
|
|
|
|
- rpi-imager
|
|
|
|
- redshift-gtk
|
2022-10-17 14:51:39 +02:00
|
|
|
update_cache: yes
|
|
|
|
install_recommends: no
|
|
|
|
|
2022-12-23 16:10:34 +01:00
|
|
|
- name: 1 GB swap (100MB default)
|
|
|
|
ansible.builtin.lineinfile:
|
|
|
|
path: /etc/dphys-swapfile
|
|
|
|
regexp: '^CONF_SWAPSIZE=.+$'
|
|
|
|
line: 'CONF_SWAPSIZE=1024'
|
|
|
|
backup: yes
|
|
|
|
|
2024-10-07 11:18:01 +02:00
|
|
|
# - name: Install Flatpaks
|
|
|
|
# community.general.flatpak:
|
|
|
|
# name:
|
|
|
|
# - tv.kodi.Kodi
|
|
|
|
# state: present
|
|
|
|
# method: system
|
|
|
|
#
|
|
|
|
# - name: Create pi User
|
|
|
|
# ansible.builtin.user:
|
|
|
|
# name: pi
|
|
|
|
# comment: pi
|
|
|
|
# uid: 1100
|
|
|
|
# group: users
|
|
|
|
# groups: sudo,adm,audio,video,games,input,render,netdev
|
|
|
|
|
|
|
|
# - name: Raspi /boot/firmware/config.txt comment dtoverlay=vc4-kms-v3d
|
|
|
|
# replace:
|
|
|
|
# path: /boot/firmware/config.txt
|
|
|
|
# regexp: '(^dtoverlay=vc4-kms-v3d$)'
|
|
|
|
# replace: '#\1'
|
|
|
|
|
|
|
|
# - name: Raspi /boot/firmware/config.txt
|
|
|
|
# blockinfile:
|
|
|
|
# path: /boot/firmware/config.txt
|
|
|
|
# insertafter: EOF
|
|
|
|
# marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
|
|
|
# block: |
|
|
|
|
# gpu_mem=256
|
|
|
|
# hdmi_force_hotplug=1
|
|
|
|
# hdmi_mode=4
|
|
|
|
# dtparam=audio=on
|
|
|
|
# hdmi_drive=2
|
|
|
|
# hdmi_ignore_edid=0xa5000080
|
|
|
|
# config_hdmi_boost=4
|
|
|
|
# hdmi_group=1
|
|
|
|
# disable_overscan=1
|
|
|
|
#
|
|
|
|
# [pi2]
|
|
|
|
# dtoverlay=vc4-fkms-v3d,cma-256
|
|
|
|
# arm_freq=1000
|
|
|
|
# sdram_freq=500
|
|
|
|
# core_freq=500
|
|
|
|
# over_voltage=4
|
|
|
|
#
|
|
|
|
# [pi3]
|
|
|
|
# dtoverlay=vc4-fkms-v3d,cma-256
|
|
|
|
# arm_freq=1100
|
|
|
|
# core_freq=500
|
|
|
|
# sdram_freq=500
|
|
|
|
# over_voltage=4
|
|
|
|
#
|
|
|
|
# [pi4]
|
|
|
|
# dtoverlay=vc4-kms-v3d,cma-256
|
|
|
|
|
|
|
|
|
|
|
|
# - name: lightdm.conf
|
|
|
|
# blockinfile:
|
|
|
|
# path: /etc/lightdm/lightdm.conf
|
|
|
|
# create: yes
|
|
|
|
# mode: "0444"
|
|
|
|
# owner: root
|
|
|
|
# group: root
|
|
|
|
# insertafter: "#exit-on-failure=false"
|
|
|
|
# marker: "# {mark} ANSIBLE MANAGED BLOCK"
|
|
|
|
# block: |
|
|
|
|
# session-wrapper=/etc/X11/Xsession
|
|
|
|
# user-session=cinnamon
|
|
|
|
# autologin-session=cinnamon
|
|
|
|
# greeter-session=lightdm-autologin-greeter
|
|
|
|
# greeter-hide-users=false
|
|
|
|
# greeter-show-manual-login=true
|
|
|
|
# allow-guest=false
|
|
|
|
# xserver-command=X -core -dpi 96
|
|
|
|
# autologin-user=user
|
|
|
|
# backup: yes
|
|
|
|
# notify:
|
|
|
|
# - Restart lightdm
|
|
|
|
#
|
|
|
|
# - name: 'add lightdm to startup'
|
|
|
|
# command: systemctl enable lightdm
|
|
|
|
# args:
|
|
|
|
# creates: /etc/systemd/system/display-manager.service
|
2022-10-19 11:42:35 +02:00
|
|
|
|
2024-04-03 14:27:54 +02:00
|
|
|
- name: 'remove smartmontools from startup'
|
|
|
|
command: systemctl disable smartmontools
|
|
|
|
args:
|
|
|
|
removes: /etc/systemd/system/smartd.service
|
|
|
|
|
2024-10-07 11:18:01 +02:00
|
|
|
# - name: "Get current systemd default"
|
|
|
|
# command: "systemctl get-default"
|
|
|
|
# changed_when: false
|
|
|
|
# register: systemdefault
|
|
|
|
#
|
|
|
|
# - name: "Set default to graphical target"
|
|
|
|
# command: "systemctl set-default graphical.target"
|
|
|
|
# when: "'graphical' not in systemdefault.stdout"
|
2022-10-19 11:42:35 +02:00
|
|
|
|
2024-10-04 18:03:06 +02:00
|
|
|
- name: Allow port 8080 for remote control
|
|
|
|
community.general.ufw:
|
|
|
|
rule: allow
|
|
|
|
port: '8080'
|
|
|
|
proto: tcp
|
|
|
|
|
2022-10-17 15:39:33 +02:00
|
|
|
|
2024-10-07 11:18:01 +02:00
|
|
|
# handlers:
|
|
|
|
#
|
|
|
|
# - name: Restart lightdm
|
|
|
|
# service:
|
|
|
|
# name: lightdm
|
|
|
|
# state: restarted
|
2022-10-17 15:39:33 +02:00
|
|
|
|