ansible-koji/roles/koji_hub/handlers/main.yaml
Rénich Bon Ćirić 38a0669db8
feat: implement automatic, atomic, and push-based repository synchronization
- Switched from systemd path monitoring to a custom wrapper script `mxos-trigger-dist-repo.sh` spawned by the Koji signing spooler.
- Wrapper script runs Koji `dist-repo` synchronously and triggers the `mxos-repo-sync.sh` script to perform an atomic rsync of packages to the Caddy server.
- Excluded reposerver from distro-sync to work around VM disk space constraints.
- Configured Koji tag `mxos0` to cancel older pending/running `distRepo` tasks when a new one is triggered.
- Verified successful repository generation, synchronization, and DNF resolution.

Co-developed-by: Gemini AI <renich+gemini@woralelandia.com>
Signed-off-by: Rénich Bon Ćirić <renich@woralelandia.com>
2026-06-16 23:57:02 -06:00

18 lines
329 B
YAML

# SPDX-License-Identifier: MIT-0
---
- name: Restart httpd
ansible.builtin.service:
name: httpd
state: restarted
- name: Reload firewalld
ansible.builtin.service:
name: firewalld
state: reloaded
- name: Restart koji-sign-spooler
ansible.builtin.service:
name: koji-sign-spooler
state: restarted