add scripts

This commit is contained in:
2026-03-04 19:16:20 +01:00
parent 67a51f3fc5
commit 917bf2e100
2 changed files with 17 additions and 2 deletions

View File

@@ -13,3 +13,9 @@ RUNNER_DOWNLOAD_DIR: /tmp
RUNNER_LABELS: RUNNER_LABELS:
- REPLACE_ME - REPLACE_ME
RUNNER_REDEPLOY: false RUNNER_REDEPLOY: false
RUNNER_SCRIPT_DIR: "{{ RUNNER_DIR }}/scripts"
RUNNER_DEFAULT_SCRIPTS:
- name: askpass_helper.sh
content: |
#!/bin/bash
echo $GIT_TOKEN

View File

@@ -28,3 +28,12 @@
ansible.builtin.service: ansible.builtin.service:
name: "{{ RUNNER_SERVICE_NAME }}" name: "{{ RUNNER_SERVICE_NAME }}"
enabled: yes enabled: yes
- name: create default scripts
ansible.builtin.copy:
dest: "{{ RUNNER_SCRIPT_DIR }}/{{ item.name }}"
content: "{{ item.content }}"
owner: "{{ RUNNER_USER }}"
group: "{{ RUNNER_GROUP }}"
mode: '0760'
loop: "{{ RUNNER_DEFAULT_SCRIPTS }}"