This repository has been archived on 2024-11-01. You can view files and clone it, but cannot push or open issues or pull requests.
services/_ansible/roles/forgejo-runner/tasks/prompt-registration-token.yml

11 lines
362 B
YAML
Raw Normal View History

2023-12-13 01:43:15 +00:00
---
2023-12-04 20:36:32 +00:00
- name: Input forgejo-runner registration token
2023-06-19 19:15:16 +00:00
ansible.builtin.pause:
2023-12-13 01:43:15 +00:00
prompt: Enter a secret
echo: false
2023-06-19 19:15:16 +00:00
register: promt_registration_token
- name: Put registration token into env vars
ansible.builtin.set_fact:
2023-12-13 01:43:15 +00:00
svc_env: "{{ svc_env | combine({'FORGEJO_RUNNER_REGISTRATION_TOKEN': promt_registration_token.user_input}, recursive=True) }}"