Skip to content

Commit

Permalink
Add sentry dsn to global config if it's defined
Browse files Browse the repository at this point in the history
* Surround value with quotes
  • Loading branch information
heytrav committed May 9, 2019
1 parent ee22912 commit 92864f0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tasks/global-setup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
-

0 comments on commit 92864f0

Please sign in to comment.