---
- name: Set concurrent option
  lineinfile:
    dest: /etc/gitlab-runner/config.toml
    regexp: '^(\s*)concurrent ='
    line: '\1concurrent = {{ gitlab_runner_concurrent }}'
    state: present
    backrefs: yes
  notify: restart_gitlab_runner

- name: Set docker privileged option
  lineinfile:
    dest: /etc/gitlab-runner/config.toml
    regexp: '^(\s*)privileged ='
    line: '\1privileged = {{ gitlab_runner_docker_privileged | lower}}'
    state: present
    backrefs: yes
  notify: restart_gitlab_runner
