mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2026-11-06 10:59:59 +00:00
Add tests/lint/repository/test_task_file_numbering.py: numbered task files use exactly two leading digits, a numbered *_core.yml must be 00_core.yml, per directory the numbers are unique/consecutive and start at 01 (00 with a core file), numbered includes appear in ascending order, and shared helpers live in tasks/utils/ instead of the numbered chain. Apply it across every role: rename NN_core.yml to 00_core.yml with a consecutive down-shift of the siblings, move letter-suffix children into a subdirectory named after their parent task, relocate helpers included from more than one place into tasks/utils/, and update every reference (include_tasks, path_absolute, .ansible-lint-ignore, requirement docs). Legacy narration comments in the touched files are deleted; the upstream xwiki.properties reference block opts out via nocheck. The unused MAILU_IP6_PUBLIC var (only ever named in now-removed comments) is dropped. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
36 lines
1.3 KiB
YAML
36 lines
1.3 KiB
YAML
---
|
|
- name: "🔍 Resolve ERPNext backend hosting node + container id"
|
|
ansible.builtin.include_tasks: "{{ lookup('path_absolute', 'roles/sys-svc-compose/tasks/utils/swarm/resolve_host_cid.yml') }}"
|
|
vars:
|
|
resolve_service_key: backend
|
|
resolve_output_prefix: ERPNEXT_BACKEND
|
|
resolve_compose_cid: "{{ ERPNEXT_BACKEND_CONTAINER }}"
|
|
resolve_converge_retries: 60
|
|
resolve_converge_delay: 5
|
|
|
|
- name: "⏳ wait for {{ ERPNEXT_BACKEND_CONTAINER }} gunicorn TCP port"
|
|
ansible.builtin.shell: |
|
|
set -eo pipefail
|
|
# nocheck: container-exec-resolver runtime-resolved CID, delegated to the hosting node
|
|
container exec {{ ERPNEXT_BACKEND_LOCAL_CID | quote }} \
|
|
bash -c 'exec 3<>/dev/tcp/localhost/{{ ERPNEXT_BACKEND_PORT }} && exec 3<&- 3>&-'
|
|
delegate_to: "{{ ERPNEXT_BACKEND_HOST_NODE }}"
|
|
register: erpnext_backend_ready
|
|
changed_when: false
|
|
retries: 60
|
|
delay: 5
|
|
until: erpnext_backend_ready.rc == 0
|
|
|
|
- name: "🥾 bench bootstrap"
|
|
include_tasks: 02_bench_bootstrap.yml
|
|
|
|
- name: "🔧 configure OIDC"
|
|
include_tasks: 03_oidc.yml
|
|
when: ERPNEXT_OIDC_ENABLED
|
|
- name: "🔧 configure LDAP"
|
|
include_tasks: 04_ldap.yml
|
|
when: ERPNEXT_LDAP_ENABLED
|
|
- name: "🔧 configure outbound email"
|
|
include_tasks: 05_email.yml
|
|
when: ERPNEXT_EMAIL_ENABLED
|