GRM-5: feat: parameterize all hardcoded configuration values as Ansible variables

This commit is contained in:
Emil Simeonov
2026-06-18 03:36:20 +02:00
parent 0cea9b9490
commit cc000c226c
13 changed files with 211 additions and 46 deletions
+9 -13
View File
@@ -1,24 +1,20 @@
---
- name: Check act_runner binary exists
- name: Check gitea_runner binary exists
ansible.builtin.stat:
path: /usr/local/bin/act_runner
register: act_runner_stat
path: "{{ gitea_runner_binary_path }}"
register: gitea_runner_stat
- name: Fail if act_runner binary is missing
- name: Fail if gitea_runner binary is missing
ansible.builtin.fail:
msg: "act_runner binary not found at /usr/local/bin/act_runner"
when: not act_runner_stat.stat.exists
msg: "gitea_runner binary not found at {{ gitea_runner_binary_path }}"
when: not gitea_runner_stat.stat.exists
- name: Verify act_runner is executable
ansible.builtin.command: /usr/local/bin/act_runner --version
register: act_runner_version_output
- name: Verify gitea_runner is executable
ansible.builtin.command: "{{ gitea_runner_binary_path }} --version"
register: gitea_runner_version_output
changed_when: false
- name: Verify Docker connectivity
ansible.builtin.command: docker version
register: docker_version_output
changed_when: false
- name: Set runner_validated fact
ansible.builtin.set_fact:
runner_validated: true