add scripts
This commit is contained in:
@@ -13,3 +13,9 @@ RUNNER_DOWNLOAD_DIR: /tmp
|
||||
RUNNER_LABELS:
|
||||
- REPLACE_ME
|
||||
RUNNER_REDEPLOY: false
|
||||
RUNNER_SCRIPT_DIR: "{{ RUNNER_DIR }}/scripts"
|
||||
RUNNER_DEFAULT_SCRIPTS:
|
||||
- name: askpass_helper.sh
|
||||
content: |
|
||||
#!/bin/bash
|
||||
echo $GIT_TOKEN
|
||||
@@ -28,3 +28,12 @@
|
||||
ansible.builtin.service:
|
||||
name: "{{ RUNNER_SERVICE_NAME }}"
|
||||
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 }}"
|
||||
Reference in New Issue
Block a user