Another big round of refactoring and cleaning...

This commit is contained in:
2025-07-11 17:55:26 +02:00
parent aa61bf2a44
commit 168c5c0da6
323 changed files with 761 additions and 811 deletions

View File

@@ -13,7 +13,7 @@ This Ansible role simplifies the deployment of **Let's Encrypt certificates** in
- Automatically **reloads or restarts Nginx services** when certificates are updated.
- **Configures and manages a `systemd` service** for automated certificate deployment.
- **Includes a `systemd` timer** for scheduled renewals.
- **Handles dependent services** like `alert-compose`.
- **Handles dependent services** like `sys-alm-compose`.
---
@@ -29,7 +29,7 @@ This Ansible role simplifies the deployment of **Let's Encrypt certificates** in
3. **Configure `systemd` Service**
- Deploys a `systemd` service file for the deployment process.
4. **Include `gen-timer` Role**
4. **Include `sys-timer` Role**
- Schedules automatic certificate deployment using a `systemd` timer.
### **2⃣ Handlers**

View File

@@ -21,5 +21,5 @@ galaxy_info:
- name: Any
versions: [ all ]
dependencies:
- alert-compose
- sys-alm-compose

View File

@@ -23,9 +23,9 @@
dest: "/etc/systemd/system/srv-proxy-6-6-tls-deploy.{{application_id}}.cymais.service"
notify: restart srv-proxy-6-6-tls-deploy.cymais.service
- name: "include role for gen-timer for {{service_name}}"
- name: "include role for sys-timer for {{service_name}}"
include_role:
name: gen-timer
name: sys-timer
vars:
on_calendar: "{{on_calendar_deploy_certificates}}"
service_name: "srv-proxy-6-6-tls-deploy.{{application_id}}"

View File

@@ -1,6 +1,6 @@
[Unit]
Description=Let's Encrypt deploy to {{docker_compose.directories.instance}}
OnFailure=alert-compose.cymais@%n.service
OnFailure=sys-alm-compose.cymais@%n.service
[Service]
Type=oneshot