feat(semaphore): rewrite role with rootful Podman Quadlet + PostgreSQL
Complete rewrite of the semaphore role. Supersedes three prior
iterations whose admin-user-creation logic was unreliable across
Semaphore CLI versions.
Architecture:
- Rootful Podman Quadlet under /etc/containers/systemd/
- Separate PostgreSQL 16-alpine container on a user-defined
podman network (semaphore-net)
- Named volumes for both data stores (semaphore_data,
semaphore_postgres_data) so container recreation is
non-destructive
- Pinned image tags: semaphoreui/semaphore:v2.18.5-ansible2.16.5
and postgres:16-alpine
- Post-deploy HTTP health check fails the playbook if Semaphore
doesn't respond on /api/ping within ~60s
Admin user creation remains intentionally manual after first deploy;
the role README documents the exact podman exec command.
Removes the duplicate deploy_semaphore.yml and the now-unneeded
cleanup_semaphore.yml; day1_deploy_semaphore.yml is the canonical
entry point.
This commit is contained in:
@@ -1,4 +1,24 @@
|
||||
---
|
||||
dependencies:
|
||||
- role: podman
|
||||
when: podman_install | default(true)
|
||||
galaxy_info:
|
||||
role_name: semaphore
|
||||
author: JARVIS
|
||||
description: >-
|
||||
Deploys SemaphoreUI with PostgreSQL backend via rootful Podman Quadlet
|
||||
on Ubuntu. Designed for the mk-labs imagineering host (figment).
|
||||
license: MIT
|
||||
min_ansible_version: "2.14"
|
||||
platforms:
|
||||
- name: Ubuntu
|
||||
versions:
|
||||
- noble
|
||||
- jammy
|
||||
galaxy_tags:
|
||||
- semaphore
|
||||
- ansible
|
||||
- podman
|
||||
- quadlet
|
||||
- homelab
|
||||
|
||||
# linux-baseline is applied separately as a day0 playbook. We don't depend
|
||||
# on it here so this role stays composable.
|
||||
dependencies: []
|
||||
|
||||
Reference in New Issue
Block a user