diff --git a/tasks/collect_info.yml b/tasks/collect_info.yml index 89cbd7a..aa90024 100644 --- a/tasks/collect_info.yml +++ b/tasks/collect_info.yml @@ -33,13 +33,16 @@ - name: "Check currently registered runners for repo {{ '(RUN ONCE)' if all_runners_in_same_repo else '' }}" ansible.builtin.uri: - url: "{{ github_full_api_url }}{{ '?' if '?' not in github_full_api_url else '&' }}per_page={{ github_api_runners_per_page }}" + url: "{{ github_full_api_url }}?{{ query_params | urlencode }}" headers: Authorization: "token {{ access_token }}" Accept: "application/vnd.github.v3+json" method: GET status_code: 200 force_basic_auth: true + vars: + query_params: + per_page: "{{ github_api_runners_per_page }}" register: registered_runners delegate_to: localhost become: false