Skip to content

Commit

Permalink
Merge pull request #256 from siwon/master
Browse files Browse the repository at this point in the history
Fix corrupt cache in config.toml
  • Loading branch information
riemers committed Mar 13, 2023
2 parents e4b0488 + d8fe2ea commit ff590b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tasks/update-config-runner.yml
Original file line number Diff line number Diff line change
Expand Up @@ -390,7 +390,7 @@
dest: "{{ temp_runner_config.path }}"
regexp: '^\s*\[runners\.cache\.s3\]'
line: ' [runners.cache.s3]'
state: "{{ 'present' if gitlab_runner.cache_type is defined else 'absent' }}"
state: "{{ 'present' if gitlab_runner.cache_s3_bucket_name is defined else 'absent' }}"
insertafter: '^\s*\[runners\.cache\]'
backrefs: no
check_mode: no
Expand All @@ -416,7 +416,7 @@
dest: "{{ temp_runner_config.path }}"
regexp: '^\s*\[runners\.cache\.azure\]'
line: ' [runners.cache.azure]'
state: "{{ 'present' if gitlab_runner.cache_type is defined else 'absent' }}"
state: "{{ 'present' if gitlab_runner.cache_azure_account_name is defined else 'absent' }}"
insertafter: '^\s*\[runners\.cache\]'
backrefs: no
check_mode: no
Expand Down

0 comments on commit ff590b1

Please sign in to comment.