binary deployment of twirre.me rust rewrite

This commit is contained in:
Twirre Meulenbelt
2026-06-28 10:08:18 +02:00
parent b44ff6f808
commit 0b65db0e50
8 changed files with 320 additions and 10 deletions

View File

@@ -17,6 +17,22 @@
fail_msg: Define at least one Bun application in bun_apps.
when: bun_enabled | bool
- name: Validate binary application definitions
ansible.builtin.assert:
that:
- binary_apps is iterable
- binary_apps | length > 0
- binary_apps | map(attribute='name') | select('string') | list | length == binary_apps | length
- binary_apps | map(attribute='github_repo') | select('string') | list | length == binary_apps | length
- binary_apps | map(attribute='version') | select('string') | list | length == binary_apps | length
- binary_apps | map(attribute='asset_name') | select('string') | list | length == binary_apps | length
- binary_apps | map(attribute='binary_name') | select('string') | list | length == binary_apps | length
- binary_apps | map(attribute='deploy_user') | select('string') | list | length == binary_apps | length
- binary_apps | map(attribute='deploy_group') | select('string') | list | length == binary_apps | length
- binary_apps | map(attribute='service_name') | select('string') | list | length == binary_apps | length
fail_msg: Define at least one binary application in binary_apps.
when: binary_apps_enabled | bool
- name: Validate WireGuard configuration when enabled
ansible.builtin.assert:
that:
@@ -51,6 +67,8 @@
when: gitea_enabled | bool
- role: bun_app
when: bun_enabled | bool
- role: binary_app
when: binary_apps_enabled | bool
- role: nginx
when: nginx_enabled | bool
- role: certbot