infrastructure/playbooks/roles/forgejo_runner/tasks/prompt-registration-token.yml

11 lines
384 B
YAML
Raw Normal View History

2024-09-26 22:02:36 +00:00
---
- name: Input forgejo-runner registration token
ansible.builtin.pause:
prompt: Enter a secret
echo: false
register: promt_registration_token
- name: Put registration token into env vars
ansible.builtin.set_fact:
forgejo_runner_env: "{{ forgejo_runner_env | combine({'FORGEJO_RUNNER_REGISTRATION_TOKEN': promt_registration_token.user_input}, recursive=True) }}"