You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Unable to delete a gitlab runner when I have 20+ runners and the desired one is not listed in on the first page (API request for runners uses pagination).
Make sure you have 20+ runners and your desired one is not listed on the first page on paginated request curl --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" "https://gitlab.example.con/api/v4/runners" | jq '.[].id ' | sort
- name: Try and remove this non-listed runnergitlab_runner:
api_token: "{{ access_token }}"api_url: "{{ gitlab_url }}"description: "{{ ansible_hostname }}"state: absent
Expected Results
Runner getting deleted.
Actual Results
ok: [srv01-runner35] => {"changed": false, "msg": "Runner deleted or does not exists"}
(Spoiler: it actually exists on the second page of the gitlab API paginated request.)
Code of Conduct
I agree to follow the Ansible Code of Conduct
The text was updated successfully, but these errors were encountered:
Summary
Unable to delete a gitlab runner when I have 20+ runners and the desired one is not listed in on the first page (API request for runners uses pagination).
Issue Type
Bug Report
Component Name
gitlab_runner
Ansible Version
Community.general Version
Configuration
$ ansible-config dump --only-changed
Empty.
OS / Environment
Ubuntu 20.04.5 LTS
Steps to Reproduce
curl --header "PRIVATE-TOKEN: ${GITLAB_TOKEN}" "https://gitlab.example.con/api/v4/runners" | jq '.[].id ' | sort
Expected Results
Runner getting deleted.
Actual Results
ok: [srv01-runner35] => {"changed": false, "msg": "Runner deleted or does not exists"}
(Spoiler: it actually exists on the second page of the gitlab API paginated request.)
Code of Conduct
The text was updated successfully, but these errors were encountered: