automatedDeviceSetup/debian-desktop.yml
2025-01-16 19:05:32 +00:00

134 lines
3.9 KiB
YAML
Executable File

- name: setup debian with gnome
hosts: localhost
become: true
tasks:
- name: update apt and install gui apps
ansible.builtin.apt:
pkg:
- audacity
- blender
- cura
- firefox-esr
- gimp
- inkscape
- kiwix
- libreoffice
- libreoffice-gnome
- monero
- mpv
- obs-studio
- retroarch
- thunderbird
#- torbrowser-launcher
#- ttf-mscore-fonts-installer
- virt-manager
- wireshark
#gnome
- gnome-core
- gnome-tweaks
state: latest
update_cache: true
- name: install terminal apps
ansible.builtin.apt:
pkg:
- ansible
- cataclysm-dda-curses
- cifs-utils
- cmatrix
- curl
- exiftool
- ffmpeg
- fzf
- git
- gnupg
- htop
- iperf3
- lm-sensors
- neofetch
- neovim
- nfs-common
- nmap
- mediainfo
- pip
- qrencode
- smartmontools
- telnet
- tmux
- wget
- yt-dlp
- xxd
- name: install signal
block:
- name: get signal key
ansible.builtin.get_url:
url: https://updates.signal.org/desktop/apt/keys.asc
dest: /etc/apt/keyrings/signal.asc
- name: install signal key
ansible.builtin.apt_repository:
repo: "deb [arch=amd64 signed-by=/etc/apt/keyrings/signal.asc] https://updates.signal.org/desktop/apt xenial main"
state: present
- name: install signal package
ansible.builtin.apt:
pkg:
- signal-desktop
update_cache: true
- name: install discord
block:
- name: get discord.deb
ansible.builtin.get_url:
url: https://discord.com/api/download?platform=linux&format=deb
dest: /tmp/discord.deb
- name: install discord.deb
ansible.builtin.apt:
deb: /tmp/discord.deb
- name: install bitwarden
block:
- name: create ~/admin/apps
ansible.builtin.file:
path: /home/admin/apps
state: directory
- name: download bitwarden appimage
ansible.builtin.get_url:
url: https://vault.bitwarden.com/download/?app=desktop&platform=linux
dest: /home/admin/apps/bitwarden.AppImage
- name: permissions
ansible.builtin.file:
path: /home/admin/apps/bitwarden.AppImage
owner: admin
group: admin
mode: '0766'
- name: enable workspace-indicator extension
ansible.builtin.shell:
cmd: gnome-extensions enable workspace-indicator@gnome-shell-extensions.gcampax.github.com
- name: create mount directories
block:
- name: create /mnt/share
ansible.builtin.file:
path: /mnt/share
state: directory
- name: create /mnt/media
ansible.builtin.file:
path: /mnt/media
state: directory
- name: mount data nfs
ansible.posix.mount:
path: /mnt/share
src: //192.168.0.20/data
fstype: cifs
opts: defaults,auto,rw,password=
state: mounted
- name: mount media nfs
ansible.posix.mount:
path: /mnt/media
src: //192.168.0.20/media
fstype: cifs
opts: defaults,auto,rw,password=
state: mounted
- name: dark mode gnome
ansible.builtin.shell:
cmd: gsettings set org.gnome.desktop.interface gtk-theme 'Adwaita-dark' && gsettings set org.gnome.desktop.interface color-scheme prefer-dark && gsettings set org.gnome.desktop.interface enable-hot-corners false && gsettings set org.gnome.mutter experimental-features "['scale-monitor-framebuffer']"
#- name: reboot
#ansible.builtin.reboot: