Valid linting and CI.
All checks were successful
Test the role / test-the-role (push) Successful in 8s

This commit is contained in:
Tom
2026-02-18 15:16:19 +01:00
parent 5325b87d84
commit 6473113abb
3 changed files with 17 additions and 3 deletions

10
.gitea/workflows/test.yml Normal file
View File

@@ -0,0 +1,10 @@
name: Test the role
on:
- push
jobs:
test-the-role:
runs-on: iron-runner
steps:
- uses: actions/checkout@v6
- run: ansible-lint --profile production .

View File

@@ -2,7 +2,7 @@
#+AUTHOR: DeadSwitch | The Silent Architect
#+OPTIONS: toc:nil num:nil \n:t
* ds-act_runner
* ds_act_runner
This Ansible role installs and registers an =act_runner= instance to Gitea.
@@ -52,7 +52,7 @@ The following playbook deploys two =act_runner= instances:
act_runner_instance: https://gitea.tomsitcafe.com
roles:
- role: ds-act_runner
- role: ds_act_runner
vars:
act_runner_name: gitea-runner-non-privileged
act_runner_labels:
@@ -63,7 +63,7 @@ The following playbook deploys two =act_runner= instances:
privileged: false
force_pull: false
- role: ds-act_runner
- role: ds_act_runner
vars:
act_runner_name: gitea-runner-privileged
act_runner_labels:

View File

@@ -27,6 +27,9 @@
url: "{{ act_runner_binary_url }}"
dest: /usr/local/bin/act_runner
checksum: sha256:{{ act_runner_checksum_url }}
owner: root
group: "{{ act_runner_group }}"
mode: '0750'
- name: Set the permissions of the act_runner binary
ansible.builtin.file:
@@ -60,6 +63,7 @@
--name {{ act_runner_name }}
--config /home/{{ act_runner_user }}/{{ act_runner_name }}.yml
creates: /home/{{ act_runner_user }}/.{{ act_runner_name }}
become: true
become_user: "{{ act_runner_user }}"
- name: Deploy the systemd service file