binary deployment of twirre.me rust rewrite
This commit is contained in:
18
site.yml
18
site.yml
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user