ansible rework
This commit is contained in:
parent
67414814c0
commit
eecff4345a
47 changed files with 1995 additions and 538 deletions
26
ansible/roles/forgejo_runner/tasks/validate.yaml
Normal file
26
ansible/roles/forgejo_runner/tasks/validate.yaml
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
---
|
||||
# Variable validation for forgejo_runner role
|
||||
|
||||
- name: Validate Forgejo Runner required variables
|
||||
ansible.builtin.assert:
|
||||
that:
|
||||
- forgejo_runner_base_path is defined
|
||||
- forgejo_runner_base_path | length > 0
|
||||
- forgejo_runner_token is defined
|
||||
- forgejo_runner_token | length > 0
|
||||
- forgejo_runner_version is defined
|
||||
- forgejo_runner_version | length > 0
|
||||
- forgejo_http_port is defined
|
||||
- forgejo_http_port | int > 0
|
||||
- asxpio_ops_vpc_ip is defined
|
||||
- asxpio_ops_vpc_ip | length > 0
|
||||
fail_msg: |
|
||||
Forgejo Runner role requires:
|
||||
- forgejo_runner_base_path (installation directory)
|
||||
- forgejo_runner_token (runner registration token)
|
||||
- forgejo_runner_version (e.g., '3.5.1')
|
||||
- forgejo_http_port (Forgejo HTTP port)
|
||||
- asxpio_ops_vpc_ip (Forgejo server IP)
|
||||
|
||||
WARNING: forgejo_runner_token should be stored in Ansible Vault!
|
||||
success_msg: "Forgejo Runner variables validated (WARNING: token should use Ansible Vault)"
|
||||
Loading…
Add table
Add a link
Reference in a new issue