25 lines
697 B
YAML
25 lines
697 B
YAML
---
|
|
- name: Check act_runner binary exists
|
|
ansible.builtin.stat:
|
|
path: /usr/local/bin/act_runner
|
|
register: act_runner_stat
|
|
|
|
- name: Fail if act_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
|
|
|
|
- name: Verify act_runner is executable
|
|
ansible.builtin.command: /usr/local/bin/act_runner --version
|
|
register: act_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
|