mirror of
https://github.com/zebrajr/HomeLab.git
synced 2025-12-06 12:20:58 +01:00
improve samples, add workstation poc tasks
This commit is contained in:
parent
17b74ee3a9
commit
858fab8ba0
|
|
@ -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
|
# ToDo
|
||||||
|
|
||||||
|
|
@ -5,7 +9,7 @@
|
||||||
2. Fix gnome tweak not being applied to the user correctly
|
2. Fix gnome tweak not being applied to the user correctly
|
||||||
|
|
||||||
|
|
||||||
# Using the Playbook
|
# Adapting the Playbook for yourself
|
||||||
|
|
||||||
## Used Vars
|
## Used Vars
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,6 +6,10 @@ update_packages: true
|
||||||
upgrade_packages: true
|
upgrade_packages: true
|
||||||
install_security_updates: 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
|
# Variables to define if specific tasks should be run
|
||||||
run_htpc_tasks: false
|
run_htpc_tasks: false
|
||||||
run_workstation_tasks: false
|
run_workstation_tasks: false
|
||||||
|
|
@ -18,13 +22,21 @@ flapak_common_remotes:
|
||||||
|
|
||||||
# Software to be installed in every system
|
# Software to be installed in every system
|
||||||
software_packages_common_present:
|
software_packages_common_present:
|
||||||
- htop
|
|
||||||
- btop
|
- btop
|
||||||
- tmux
|
|
||||||
- gparted
|
|
||||||
- openssh-server
|
|
||||||
- vim
|
|
||||||
- git
|
|
||||||
- curl
|
- curl
|
||||||
|
- git
|
||||||
|
- gnome-shell-extensions
|
||||||
|
- gnome-tweaks
|
||||||
|
- gparted
|
||||||
|
- htop
|
||||||
|
- iotop
|
||||||
|
- ncdu
|
||||||
|
- neofetch
|
||||||
|
- openssh-server
|
||||||
|
- rsync
|
||||||
|
- tmux
|
||||||
|
- vim
|
||||||
- vlc
|
- vlc
|
||||||
|
- wget
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -6,5 +6,4 @@ install_security_updates: true
|
||||||
run_htpc_tasks: true
|
run_htpc_tasks: true
|
||||||
|
|
||||||
software_packages_htpc_present:
|
software_packages_htpc_present:
|
||||||
- gnome-tweaks
|
- btop
|
||||||
- gnome-shell-extensions
|
|
||||||
|
|
@ -7,20 +7,21 @@ install_security_updates: true
|
||||||
run_workstation_tasks: true
|
run_workstation_tasks: true
|
||||||
|
|
||||||
software_packages_workstation_present:
|
software_packages_workstation_present:
|
||||||
- gnome-tweaks
|
|
||||||
- gnome-shell-extensions
|
|
||||||
- keepassxc
|
|
||||||
- vlc
|
|
||||||
- ubuntu-restricted-extras
|
|
||||||
- virt-manager
|
|
||||||
- qemu-kvm
|
|
||||||
- bridge-utils
|
- bridge-utils
|
||||||
|
- clementine
|
||||||
- docker
|
- docker
|
||||||
- docker-compose
|
- docker-compose
|
||||||
- steam
|
- keepassxc
|
||||||
- clementine
|
- nmap
|
||||||
|
- qemu-kvm
|
||||||
- rclone
|
- rclone
|
||||||
- rclone-browser
|
- rclone-browser
|
||||||
|
- steam
|
||||||
|
- ubuntu-restricted-extras
|
||||||
|
- virt-manager
|
||||||
|
- zsh
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
flatpak_packages_workstation_present:
|
flatpak_packages_workstation_present:
|
||||||
|
|
|
||||||
|
|
@ -1,16 +1,16 @@
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
# Flatpak dependencies and remote hubs
|
# common dependencies and updates
|
||||||
- import_tasks: software/flatpak_setup.yml
|
- import_tasks: software/flatpak_setup.yml
|
||||||
|
|
||||||
# Packages Update & Upgrade related tasks
|
|
||||||
- import_tasks: software/packages_update.yml
|
- import_tasks: software/packages_update.yml
|
||||||
|
|
||||||
# Common package installation
|
# Common package installation
|
||||||
- import_tasks: software/packages_apt.yml
|
- 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/security_updates.yml
|
||||||
|
- import_tasks: system_setup/gsettings.yml
|
||||||
|
|
||||||
# Common apt cleanup tasks
|
# Common apt cleanup tasks
|
||||||
- import_tasks: system_setup/apt_cleanup.yml
|
- import_tasks: system_setup/apt_cleanup.yml
|
||||||
|
|
||||||
|
|
|
||||||
12
ansible/roles/common/tasks/system_setup/gsettings.yml
Normal file
12
ansible/roles/common/tasks/system_setup/gsettings.yml
Normal 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
|
||||||
|
|
@ -1,4 +0,0 @@
|
||||||
- name: Including "Workstation" related tasks if requested
|
|
||||||
include_tasks: workstation.yml
|
|
||||||
when: run_workstation_tasks | bool
|
|
||||||
|
|
||||||
|
|
@ -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
|
|
||||||
3
ansible/roles/workstation/tasks/main.yml
Normal file
3
ansible/roles/workstation/tasks/main.yml
Normal file
|
|
@ -0,0 +1,3 @@
|
||||||
|
# Install workstation specific software
|
||||||
|
- import_tasks: software/flatpak.yml
|
||||||
|
- import_tasks: software/packages.yml
|
||||||
|
|
@ -1,5 +1,3 @@
|
||||||
|
|
||||||
|
|
||||||
- name: Install Flatpak Apps
|
- name: Install Flatpak Apps
|
||||||
flatpak:
|
flatpak:
|
||||||
name: "{{ item.name }}"
|
name: "{{ item.name }}"
|
||||||
Loading…
Reference in New Issue
Block a user