fix: added setup clone-url and customize concurrent

This commit is contained in:
2024-02-25 18:40:13 +00:00
parent 1f9873579c
commit 134b826a70
3 changed files with 15 additions and 0 deletions

View File

@@ -21,4 +21,16 @@
group: "{{ gitlab_runner_user }}"
recurse: yes
- name: "Post-fix altered config"
ansible.builtin.replace:
path: " {{ gitlab_runner_config_path }}"
regexp: "concurrent *= *\\d+"
replace: "concurrent = {{ gitlab_runner_concurrent }}"
- name: "Reload config"
ansible.builtin.shell:
# see https://docs.gitlab.com/runner/commands/#signals
cmd: "pkill -SIGHUP -f gitlab-runner"
- meta: flush_handlers