diff --git a/tasks/global-setup.yml b/tasks/global-setup.yml index 50014cb..5b497f0 100644 --- a/tasks/global-setup.yml +++ b/tasks/global-setup.yml @@ -7,3 +7,14 @@ state: present backrefs: yes notify: restart_gitlab_runner + +- name: Add sentry dsn to config + lineinfile: + dest: /etc/gitlab-runner/config.toml + regexp: '^sentry_dsn =' + line: 'sentry_dsn = "{{ sentry_dsn }}"' + insertafter: '\s*concurrent.*' + state: present + when: sentry_dsn is defined + notify: restart_gitlab_runner +-