Skip to content
Snippets Groups Projects
Unverified Commit 9b603b1f authored by Samuel Jaeschke's avatar Samuel Jaeschke Committed by GitHub
Browse files

Fix registration check when in Ansible check-mode

When running the playbook in `--check` mode, `gitlab-runner list` still needs to register a result to prevent an error on the following `when` clause.
parent ca6da350
No related branches found
No related tags found
No related merge requests found
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
command: gitlab-runner list command: gitlab-runner list
register: configured_runners register: configured_runners
changed_when: False changed_when: False
check_mode: no
- name: Register runner to GitLab - name: Register runner to GitLab
command: gitlab-runner register > command: gitlab-runner register >
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment