refactor: reorganize Ansible tasks for better structure and include common package installations
All checks were successful
Nix Format Check / check-format (pull_request) Successful in 40s

This commit is contained in:
2025-01-22 15:11:58 +01:00
parent 596a3574df
commit c651722b73
20 changed files with 125 additions and 186 deletions

View File

@@ -3,69 +3,13 @@
gather_facts: true
tasks:
- name: Include symlinks tasks
ansible.builtin.import_tasks: tasks/symlinks.yml
- name: Include global tasks
ansible.builtin.import_tasks: tasks/global/global.yml
- name: Gather package facts
ansible.builtin.package_facts:
manager: auto
become: true
- name: Include Tailscale tasks
ansible.builtin.import_tasks: tasks/tailscale.yml
become: true
- name: Include VSCode tasks
ansible.builtin.import_tasks: tasks/vscode.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']
become: true
- name: Include Rust tasks
ansible.builtin.import_tasks: tasks/rust.yml
become: true
- name: Include Brave tasks
ansible.builtin.import_tasks: tasks/brave.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']
become: true
- name: Include 1Password tasks
ansible.builtin.import_tasks: tasks/1password.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']
become: true
- name: Include Docker tasks
ansible.builtin.import_tasks: tasks/docker.yml
become: true
- name: Include Ollama tasks
ansible.builtin.import_tasks: tasks/ollama.yml
become: true
- name: Include GNOME Extensions tasks
ansible.builtin.import_tasks: tasks/gnome-extensions.yml
- name: Ensure common packages are installed
ansible.builtin.package:
name:
- git
- vim
- pipx
- trash-cli
- curl
- wget
- flatpak
# Required by Pano - Clipboard Manager (GNOME Extension)
- libgda
- libgda-sqlite
# Required by Bubblemail - Email Notifications (GNOME Extension)
- bubblemail
state: present
become: true
- name: Include flatpaks tasks
ansible.builtin.import_tasks: tasks/flatpaks.yml
- name: Include workstation tasks
ansible.builtin.import_tasks: tasks/workstations/workstation.yml
when: hostname in ['mennos-laptop', 'mennos-desktop']
- name: Include pipx tasks
ansible.builtin.import_tasks: tasks/pipx.yml
- name: Include server tasks
ansible.builtin.import_tasks: tasks/servers/server.yml
when: hostname in ['mennos-server', 'homeserver-pc', 'mennos-vm']