mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Eight roles switch from pkgmgr-install to sys-pip-install with global_install: true, so the console scripts land on the system PATH where systemd looks for them. btrfs-auto-balancer, certreap, certbundle and unit-suffix-remover come from PyPI by name. The three that are not published yet install from git, with repository and ref declared in meta/services.yml and resolved through vars, following the pkgmgr and web-app-taiga precedent. That satisfies the repository-declaration guard and lets the scheduled Update: Versions workflow read and bump the refs. Drops a dead guard in svc-opt-swapfile that tested run_once_pkgmgr_install, a fact nothing sets any more. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
20 lines
740 B
YAML
20 lines
740 B
YAML
---
|
|
# It is necessary to shut the projects down, when reset is activated.
|
|
# Otherwise it can lead to this bug:
|
|
# https://github.com/ansible/ansible/issues/10244
|
|
- name: "📦 Install '{{ COMPOSE_DOWN_ALL_PACKAGE }}' system-wide via pip"
|
|
include_role:
|
|
name: sys-pip-install
|
|
vars:
|
|
# TODO: switch to the PyPI name 'docodol' once it is published
|
|
package_name: "git+{{ COMPOSE_DOWN_ALL_REPO }}@{{ COMPOSE_DOWN_ALL_REF }}"
|
|
global_install: true
|
|
|
|
- name: "🧹 Shutdown compose instances in '{{ DIR_COMPOSITIONS }}'"
|
|
command: "{{ COMPOSE_DOWN_ALL_PACKAGE }} {{ DIR_COMPOSITIONS }}"
|
|
|
|
- name: "🗑️ Remove directory '{{ DIR_COMPOSITIONS }}' and all its contents"
|
|
file:
|
|
path: "{{ DIR_COMPOSITIONS }}"
|
|
state: absent
|