Only the group runner.

This commit is contained in:
Robert de Bock 2023-02-13 13:34:53 +01:00
parent f430dfeb79
commit 1a3bd07a61
1 changed files with 33 additions and 33 deletions

View File

@ -56,25 +56,25 @@
protects: true protects: true
masked: true masked: true
# - name: list pipeline schedules - name: list pipeline schedules
# uri: uri:
# url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/pipeline_schedules" url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/pipeline_schedules"
# method: GET method: GET
# headers: headers:
# PRIVATE-TOKEN: "{{ gitlab_private_token }}" PRIVATE-TOKEN: "{{ gitlab_private_token }}"
# register: gitlab_schedules register: gitlab_schedules
#
# - name: delete all pipeline schedules - name: delete all pipeline schedules
# uri: uri:
# url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/pipeline_schedules/{{ item.id }}" url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/pipeline_schedules/{{ item.id }}"
# method: DELETE method: DELETE
# headers: headers:
# PRIVATE-TOKEN: "{{ gitlab_private_token }}" PRIVATE-TOKEN: "{{ gitlab_private_token }}"
# status_code: status_code:
# - 204 - 204
# loop: "{{ gitlab_schedules.json }}" loop: "{{ gitlab_schedules.json }}"
# loop_control: loop_control:
# label: "{{ item.id }}" label: "{{ item.id }}"
- name: create a new pipeline schedule - name: create a new pipeline schedule
uri: uri:
@ -88,23 +88,23 @@
body: body:
description: "Monthly test" description: "Monthly test"
ref: master ref: master
cron: "{{ letter_minute_mapping[role[:1]] | default('13') }} {{ letter_hour_mapping[role[:1]] }} {{ letter_day_mapping[role[:1]] }} * *" cron: "{{ letter_minute_mapping[role[14]] | default('13') }} {{ letter_hour_mapping[role[14]] }} {{ letter_day_mapping[role[13]] }} * *"
cron_timezone: Amsterdam cron_timezone: Amsterdam
# - name: disable runnner - name: disable runnner
# uri: uri:
# url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/runners/{{ gitlab_runner_id }}" url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/runners/{{ gitlab_runner_id }}"
# method: DELETE method: DELETE
# body_format: json body_format: json
# status_code: status_code:
# - 204 - 204
# - 404 - 404
# headers: headers:
# PRIVATE-TOKEN: "{{ gitlab_private_token }}" PRIVATE-TOKEN: "{{ gitlab_private_token }}"
# body: body:
# runner_id: "{{ gitlab_runner_id }}" runner_id: "{{ gitlab_runner_id }}"
# - name: enable runnner # - name: enable cloudtop runnner
# uri: # uri:
# url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/runners" # url: "https://gitlab.com/api/v4/projects/{{ encoded_path }}/runners"
# method: POST # method: POST