Skip to content

Commit

Permalink
Merge pull request #222 from BenjaminBoehm/dns_search
Browse files Browse the repository at this point in the history
Rewrite docker dns search option
  • Loading branch information
riemers authored Feb 21, 2022
2 parents 863f665 + e09fe2a commit 65853db
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tasks/update-config-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,19 @@
- restart_gitlab_runner
- restart_gitlab_runner_macos

- name: "{{ runn_name_prefix }} Set docker DNS search option"
lineinfile:
dest: "{{ temp_runner_config.path }}"
regexp: '^\s*dns_search ='
line: ' dns_search = {{ gitlab_runner.docker_dns_search|default(false) | to_json }}'
state: "{{ 'present' if gitlab_runner.docker_dns_search is defined else 'absent' }}"
insertafter: '^\s*\[runners\.docker\]'
backrefs: no
check_mode: no
notify:
- restart_gitlab_runner
- restart_gitlab_runner_macos

- name: "{{ runn_name_prefix }} Set docker pull_policy option"
lineinfile:
dest: "{{ temp_runner_config.path }}"
Expand Down

0 comments on commit 65853db

Please sign in to comment.