Files
computer-playbook/roles/sys-svc-compose/tasks/01_reset.yml
kevinveenbirkenbachandClaude Opus 5 6c558e7feb refactor(roles): install CLI tools via pip instead of pkgmgr
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>
2026-08-14 16:03:40 +02:00

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