13 lines
473 B
YAML
13 lines
473 B
YAML
---
|
|
- name: Input forgejo-runner registration token
|
|
ansible.builtin.pause:
|
|
prompt: Enter a secret
|
|
echo: false
|
|
register: forgejo_runner_promt_registration_token
|
|
|
|
- name: Register runner
|
|
ansible.builtin.command:
|
|
cmd: docker compose run --rm -it app sh -c
|
|
'forgejo-runner register --no-interactive --token {{ forgejo_runner_promt_registration_token.user_input }} --instance ${FORGEJO_INSTANCE_URL}'
|
|
chdir: "{{ service_path }}"
|
|
changed_when: true
|