improve samples, add workstation poc tasks

This commit is contained in:
Carlos Sousa 2024-07-29 19:14:29 +02:00
parent 17b74ee3a9
commit 858fab8ba0
11 changed files with 54 additions and 40 deletions

View File

@ -1,3 +1,7 @@
# Usage
- make a copy of the `all.yml.sample` into `all.yml` (and any other role you might want)
- adapt as needed
- run the playbook
# ToDo
@ -5,7 +9,7 @@
2. Fix gnome tweak not being applied to the user correctly
# Using the Playbook
# Adapting the Playbook for yourself
## Used Vars

View File

@ -6,6 +6,10 @@ update_packages: true
upgrade_packages: true
install_security_updates: true
# Users used in all systems
common_users:
- name: your-user-name
# Variables to define if specific tasks should be run
run_htpc_tasks: false
run_workstation_tasks: false
@ -18,13 +22,21 @@ flapak_common_remotes:
# Software to be installed in every system
software_packages_common_present:
- htop
- btop
- tmux
- gparted
- openssh-server
- vim
- git
- curl
- git
- gnome-shell-extensions
- gnome-tweaks
- gparted
- htop
- iotop
- ncdu
- neofetch
- openssh-server
- rsync
- tmux
- vim
- vlc
- wget

View File

@ -6,5 +6,4 @@ install_security_updates: true
run_htpc_tasks: true
software_packages_htpc_present:
- gnome-tweaks
- gnome-shell-extensions
- btop

View File

@ -7,20 +7,21 @@ install_security_updates: true
run_workstation_tasks: true
software_packages_workstation_present:
- gnome-tweaks
- gnome-shell-extensions
- keepassxc
- vlc
- ubuntu-restricted-extras
- virt-manager
- qemu-kvm
- bridge-utils
- clementine
- docker
- docker-compose
- steam
- clementine
- keepassxc
- nmap
- qemu-kvm
- rclone
- rclone-browser
- steam
- ubuntu-restricted-extras
- virt-manager
- zsh
flatpak_packages_workstation_present:

View File

@ -1,16 +1,16 @@
- block:
# Flatpak dependencies and remote hubs
# common dependencies and updates
- import_tasks: software/flatpak_setup.yml
# Packages Update & Upgrade related tasks
- import_tasks: software/packages_update.yml
# Common package installation
- import_tasks: software/packages_apt.yml
# Common security update tasks
# Common system setup tasks
- import_tasks: system_setup/security_updates.yml
- import_tasks: system_setup/gsettings.yml
# Common apt cleanup tasks
- import_tasks: system_setup/apt_cleanup.yml
- import_tasks: system_setup/apt_cleanup.yml

View File

@ -0,0 +1,12 @@
- name: gsettings setup | Ensure gsettings and dconf are installed
apt:
name:
- gsettings-desktop-schemas
- dconf-cli
state: present
- name: gsettings setup | Change Super Action Key to Alt
become_user: "{{ item.name }}"
command: gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Alt>'
loop: "{{ common_users }}"
when: common_users is not none

View File

@ -1,4 +0,0 @@
- name: Including "Workstation" related tasks if requested
include_tasks: workstation.yml
when: run_workstation_tasks | bool

View File

@ -1,11 +0,0 @@
---
- name: Ensure gsettings and dconf are installed
apt:
name:
- gsettings-desktop-schemas
- dconf-cli
state: present
- name: Change Window Action Key to Alt
command: gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier '<Alt>'
changed_when: false

View File

@ -0,0 +1,3 @@
# Install workstation specific software
- import_tasks: software/flatpak.yml
- import_tasks: software/packages.yml

View File

@ -1,5 +1,3 @@
- name: Install Flatpak Apps
flatpak:
name: "{{ item.name }}"