Skip to content

Commit

Permalink
Add runners.cache.s3 section when cache_type is s3
Browse files Browse the repository at this point in the history
  • Loading branch information
tauffredou committed Feb 5, 2020
1 parent 771d801 commit 6bda94a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tasks/update-config-runner.yml
Expand Up @@ -130,7 +130,7 @@
dest: "{{ temp_runner_config.path }}"
regexp: '^\s*\[runners\.cache\.s3\]'
line: ' [runners.cache.s3]'
state: "{{ 'present' if gitlab_runner.cache_s3_server_address is defined else 'absent' }}"
state: "{{ 'present' if gitlab_runner.cache_type == 's3' else 'absent' }}"
insertafter: '^\s*\[runners\.cache\]'
backrefs: no
check_mode: no
Expand Down

0 comments on commit 6bda94a

Please sign in to comment.