Change i3 to be a shared playbook. Group more playbooks in blocks.
This commit is contained in:
@@ -131,8 +131,7 @@
|
|||||||
|
|
||||||
# Window Managers without true Desktop Environments #
|
# Window Managers without true Desktop Environments #
|
||||||
- include_tasks: tasks/workstation/shared/software/dwm.yml
|
- include_tasks: tasks/workstation/shared/software/dwm.yml
|
||||||
|
- include_tasks: tasks/workstation/shared/software/i3.yml
|
||||||
- include_tasks: tasks/workstation/linux/software/i3.yml
|
|
||||||
|
|
||||||
# Polished Desktop Environments #
|
# Polished Desktop Environments #
|
||||||
- include_tasks: tasks/workstation/freebsd/software/gnome.yml
|
- include_tasks: tasks/workstation/freebsd/software/gnome.yml
|
||||||
@@ -142,7 +141,6 @@
|
|||||||
block:
|
block:
|
||||||
- include_tasks: tasks/workstation/linux/software/gnome.yml
|
- include_tasks: tasks/workstation/linux/software/gnome.yml
|
||||||
when: ansible_service_mgr == "systemd"
|
when: ansible_service_mgr == "systemd"
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/cinnamon.yml
|
- include_tasks: tasks/workstation/linux/software/cinnamon.yml
|
||||||
- include_tasks: tasks/workstation/linux/software/lxqt.yml
|
- include_tasks: tasks/workstation/linux/software/lxqt.yml
|
||||||
when: ansible_system == "Linux"
|
when: ansible_system == "Linux"
|
||||||
@@ -150,21 +148,15 @@
|
|||||||
|
|
||||||
## Software Tasks ##
|
## Software Tasks ##
|
||||||
|
|
||||||
|
- block:
|
||||||
- include_tasks: tasks/workstation/linux/software/packages.yml
|
- include_tasks: tasks/workstation/linux/software/packages.yml
|
||||||
when: ansible_system == "Linux"
|
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/tlp.yml
|
- include_tasks: tasks/workstation/linux/software/tlp.yml
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/lutris.yml
|
- include_tasks: tasks/workstation/linux/software/lutris.yml
|
||||||
when: ansible_system == "Linux"
|
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/vscodium.yml
|
- include_tasks: tasks/workstation/linux/software/vscodium.yml
|
||||||
when: ansible_system == "Linux"
|
- include_tasks: tasks/workstation/linux/software/vpn.yml
|
||||||
|
- include_tasks: tasks/workstation/linux/software/nodejs.yml
|
||||||
- include_tasks: tasks/workstation/linux/software/brave.yml
|
- include_tasks: tasks/workstation/linux/software/brave.yml
|
||||||
when: ansible_pkg_mgr in ("apt", "dnf", "zypper") and not mobile
|
when: ansible_pkg_mgr in ("apt", "dnf", "zypper") and not mobile
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/vpn.yml
|
|
||||||
when: ansible_system == "Linux"
|
when: ansible_system == "Linux"
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/freebsd/software/packages.yml
|
- include_tasks: tasks/workstation/freebsd/software/packages.yml
|
||||||
@@ -173,17 +165,16 @@
|
|||||||
- include_tasks: tasks/workstation/mac-os/software/brew.yml
|
- include_tasks: tasks/workstation/mac-os/software/brew.yml
|
||||||
when: ansible_system == "Darwin"
|
when: ansible_system == "Darwin"
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/nodejs.yml
|
|
||||||
|
|
||||||
## Configuration Tasks ##
|
## Configuration Tasks ##
|
||||||
|
|
||||||
|
- block:
|
||||||
- include_tasks: tasks/workstation/shared/settings/gnome.yml
|
- include_tasks: tasks/workstation/shared/settings/gnome.yml
|
||||||
when: not mobile
|
|
||||||
- include_tasks: tasks/workstation/shared/settings/cinnamon.yml
|
- include_tasks: tasks/workstation/shared/settings/cinnamon.yml
|
||||||
when: not mobile
|
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/cron/ansible.yml
|
- include_tasks: tasks/workstation/linux/cron/ansible.yml
|
||||||
when: ansible_system == "Linux" and not mobile
|
when: ansible_system == "Linux"
|
||||||
|
when: not mobile
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/shared/settings/nfs.yml
|
- include_tasks: tasks/workstation/shared/settings/nfs.yml
|
||||||
|
|
||||||
@@ -194,19 +185,16 @@
|
|||||||
when: vnc == true
|
when: vnc == true
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/shared/settings/services.yml
|
- include_tasks: tasks/workstation/shared/settings/services.yml
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/shared/settings/templates.yml
|
- include_tasks: tasks/workstation/shared/settings/templates.yml
|
||||||
|
|
||||||
## Final Tasks (SLOW) ##
|
## Final Tasks (SLOW) ##
|
||||||
|
|
||||||
|
- block:
|
||||||
- include_tasks: tasks/workstation/linux/software/flutter.yml
|
- include_tasks: tasks/workstation/linux/software/flutter.yml
|
||||||
when: ansible_system == "Linux"
|
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/android.yml
|
- include_tasks: tasks/workstation/linux/software/android.yml
|
||||||
when: ansible_system == "Linux"
|
|
||||||
|
|
||||||
- include_tasks: tasks/workstation/linux/software/flatpaks.yml
|
- include_tasks: tasks/workstation/linux/software/flatpaks.yml
|
||||||
when: ansible_system == "Linux" and flatpak_distro
|
when: flatpak_distro
|
||||||
|
when: ansible_system == "Linux"
|
||||||
|
|
||||||
when: workstation == true
|
when: workstation == true
|
||||||
|
|
||||||
@@ -260,22 +248,21 @@
|
|||||||
|
|
||||||
- include_tasks: tasks/server/software/services.yml
|
- include_tasks: tasks/server/software/services.yml
|
||||||
|
|
||||||
|
- block:
|
||||||
- include_tasks: tasks/server/software/certbot.yml
|
- include_tasks: tasks/server/software/certbot.yml
|
||||||
when: certbot == true
|
|
||||||
- include_tasks: tasks/server/cron/certbot.yml
|
- include_tasks: tasks/server/cron/certbot.yml
|
||||||
when: certbot == true
|
when: certbot == true
|
||||||
|
|
||||||
|
- block:
|
||||||
- include_tasks: tasks/server/software/onlyoffice.yml
|
- include_tasks: tasks/server/software/onlyoffice.yml
|
||||||
when: onlyoffice == true and ansible_pkg_mgr == "apt"
|
when: onlyoffice == true
|
||||||
|
|
||||||
- include_tasks: tasks/server/software/influxdb1.yml
|
- include_tasks: tasks/server/software/influxdb1.yml
|
||||||
when: influxdb1 == true and ansible_pkg_mgr == "apt"
|
when: influxdb1 == true
|
||||||
|
|
||||||
- include_tasks: tasks/server/software/influxdb2.yml
|
- include_tasks: tasks/server/software/influxdb2.yml
|
||||||
when: influxdb2 == true and ansible_pkg_mgr == "apt"
|
when: influxdb2 == true
|
||||||
|
|
||||||
- include_tasks: tasks/server/software/grafana.yml
|
- include_tasks: tasks/server/software/grafana.yml
|
||||||
when: grafana == true and ansible_pkg_mgr == "apt"
|
when: grafana == true
|
||||||
|
when: ansible_pkg_mgr == "apt"
|
||||||
|
|
||||||
- include_tasks: tasks/server/software/hugo.yml
|
- include_tasks: tasks/server/software/hugo.yml
|
||||||
when: hugo == true
|
when: hugo == true
|
||||||
|
|||||||
Reference in New Issue
Block a user