Fix issues reported by ansible-lint (var prefixes)

This commit is contained in:
Tobias Reisinger 2025-11-23 19:47:09 +01:00
parent 0f9e4544b0
commit 39fd6ef5a2
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
24 changed files with 86 additions and 86 deletions

View file

@ -3,8 +3,11 @@
ansible.builtin.pause:
prompt: Enter a secret
echo: false
register: promt_registration_token
register: forgejo_runner_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) }}"
- 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