Comments (7)
@heytrav since you made some changes too, could you verify this? Not in the option at the moment to verify (or anybody that reads the issue)
Whats strange is above shows runners.cache defined but it is not defined in the example you supplied. Anywhere else perhaps too?
from ansible-gitlab-runner.
@riemers Nope. I creater a file in group_vars
for the variables so I did not touch the role at all. Should anything else be relevant, just ask and I'll provide more information.
Btw, I am a bit of a newbie in Ansible, so I am sorry for a bit of stupidity in advance :)
from ansible-gitlab-runner.
Well you could just check if 'grep -R cache *' on your files and see where the cache is used. Perhaps it is indeed a duplicate. Would have assumed more people would have the issue.
from ansible-gitlab-runner.
In the root of my ansible project (actually, the only cache
I have written is the one from the example):
[user@host ansible]$ grep -R cache *
group_vars/all.yml: - "/cache"
roles/gitlab-runner/defaults/main.yml: # cache_type: 's3'
roles/gitlab-runner/defaults/main.yml: # cache_path: prefix/key
roles/gitlab-runner/defaults/main.yml: # cache_shared: false
roles/gitlab-runner/defaults/main.yml: # cache_s3_server_address: "s3.amazonaws.com"
roles/gitlab-runner/defaults/main.yml: # cache_s3_access_key: "AMAZON_S3_ACCESS_KEY"
roles/gitlab-runner/defaults/main.yml: # cache_s3_secret_key: "AMAZON_S3_SECRET_KEY"
roles/gitlab-runner/defaults/main.yml: # cache_s3_bucket_name: "my-bucket"
roles/gitlab-runner/defaults/main.yml: # cache_s3_bucket_location: "eu-west-1"
roles/gitlab-runner/defaults/main.yml: # cache_s3_insecure: false
roles/gitlab-runner/README.md: - "/cache"
roles/gitlab-runner/tasks/update-config-runner.yml:- name: Set cache type option
roles/gitlab-runner/tasks/update-config-runner.yml: line: '\1Type = {{ gitlab_runner.cache_type|default("") | to_json }}'
roles/gitlab-runner/tasks/update-config-runner.yml: state: "{{ 'present' if gitlab_runner.cache_type is defined else 'absent' }}"
roles/gitlab-runner/tasks/update-config-runner.yml:- name: Set cache path option
roles/gitlab-runner/tasks/update-config-runner.yml: line: '\1Path = {{ gitlab_runner.cache_path|default("") | to_json }}'
roles/gitlab-runner/tasks/update-config-runner.yml: state: "{{ 'present' if gitlab_runner.cache_path is defined else 'absent' }}"
roles/gitlab-runner/tasks/update-config-runner.yml:- name: Set cache shared option
roles/gitlab-runner/tasks/update-config-runner.yml: line: '\1Shared = {{ gitlab_runner.cache_shared|default("") | lower }}'
roles/gitlab-runner/tasks/update-config-runner.yml: state: "{{ 'present' if gitlab_runner.cache_shared is defined else 'absent' }}"
roles/gitlab-runner/tasks/update-config-runner.yml:- name: Set cache s3 bucket name option
roles/gitlab-runner/tasks/update-config-runner.yml: line: '\1BucketName = {{ gitlab_runner.cache_s3_bucket_name|default("") | to_json }}'
roles/gitlab-runner/tasks/update-config-runner.yml: state: "{{ 'present' if gitlab_runner.cache_s3_bucket_name is defined else 'absent' }}"
roles/gitlab-runner/tasks/update-config-runner.yml:- name: Set cache s3 bucket location option
roles/gitlab-runner/tasks/update-config-runner.yml: line: '\1BucketLocation = {{ gitlab_runner.cache_s3_bucket_location|default("") | to_json }}'
roles/gitlab-runner/tasks/update-config-runner.yml: state: "{{ 'present' if gitlab_runner.cache_s3_bucket_location is defined else 'absent' }}"
roles/gitlab-runner/tasks/update-config-runner.yml:- name: Set cache s3 insecure option
roles/gitlab-runner/tasks/update-config-runner.yml: line: '\1Insecure = {{ gitlab_runner.cache_s3_insecure|default("") | lower }}'
roles/gitlab-runner/tasks/update-config-runner.yml: state: "{{ 'present' if gitlab_runner.cache_s3_insecure is defined else 'absent' }}"
roles/gitlab-runner/tasks/register-runner.yml: {% if gitlab_runner.cache_type is defined %}
roles/gitlab-runner/tasks/register-runner.yml: --cache-type '{{ gitlab_runner.cache_type }}'
roles/gitlab-runner/tasks/register-runner.yml: --cache-shared '{{ gitlab_runner.cache_shared }}'
roles/gitlab-runner/tasks/register-runner.yml: {% if gitlab_runner.cache_path is defined %}
roles/gitlab-runner/tasks/register-runner.yml: --cache-path '{{ gitlab_runner.cache_path }}'
roles/gitlab-runner/tasks/register-runner.yml: {% if gitlab_runner.cache_s3_server_address is defined %}
roles/gitlab-runner/tasks/register-runner.yml: --cache-s3-server-address '{{ gitlab_runner.cache_s3_server_address }}'
roles/gitlab-runner/tasks/register-runner.yml: --cache-s3-access-key '{{ gitlab_runner.cache_s3_access_key }}'
roles/gitlab-runner/tasks/register-runner.yml: --cache-s3-secret-key '{{ gitlab_runner.cache_s3_secret_key }}'
roles/gitlab-runner/tasks/register-runner.yml: --cache-s3-bucket-name '{{ gitlab_runner.cache_s3_bucket_name }}'
roles/gitlab-runner/tasks/register-runner.yml: --cache-s3-bucket-location '{{ gitlab_runner.cache_s3_bucket_location }}'
roles/gitlab-runner/tasks/register-runner.yml: --cache-s3-insecure '{{ gitlab_runner.cache_s3_insecure }}'
roles/postgresql/molecule/default/playbook.yml: - name: Update apt cache.
roles/postgresql/molecule/default/playbook.yml: apt: update_cache=true cache_valid_time=600
roles/postgresql/.gitignore:*/__pycache__
roles/docker/molecule/default/playbook.yml: - name: Update apt cache.
roles/docker/molecule/default/playbook.yml: apt: update_cache=yes cache_valid_time=600
roles/docker/.gitignore:*/__pycache__
roles/docker/tasks/setup-Debian.yml: update_cache: true
from ansible-gitlab-runner.
Yeah, only the first line seems valid, nothing else. I'am not in the opportunity to test it now.
from ansible-gitlab-runner.
At the moment I am fine, I already found a workaround using the for-this-role-default shell executor. However, this might be worth fixing anyway (if I am not the only case of this happening).
from ansible-gitlab-runner.
Have not seen anyone else, few Pull request in between i would assume someone would notice / have the same issue. I'll leave it open for a bit in case someone has that too. I'll close it next week if nothing comes along.
from ansible-gitlab-runner.
Related Issues (20)
- Support for AlmaLinux HOT 3
- Support for (pre,post)_*_script in gitlab-runner config HOT 2
- Set additional services is failing due to missing variable HOT 8
- Invalid config.toml for azure and gcp cache HOT 3
- How to set custom_build_dir_enabled as variable HOT 1
- Error when upgrading from gitlab-runner version 15.0.0 to 16.6.0 HOT 2
- Default branch name HOT 5
- Debian Unhold: Failed to find package from ansible-core >=2.16 HOT 1
- Support for docker tmpfs options HOT 2
- Galaxy role renamed back from ansible-gitlab-runner to gitlab-runner HOT 10
- Reactivating Tests: Topic "systemd and docker" HOT 2
- Causes failures when included by ansible-lint HOT 1
- Can't find package `gitlab-runner` HOT 5
- tls_ca_file not included in container registration HOT 1
- Runtime owner and group for container setup HOT 1
- Deploy multiple executors to single VM
- Fails when GPG key of https://packages.gitlab.com/runner/gitlab-runner is expired HOT 6
- Gitlab-runner does not get deployed correctly after adding additional lines to the configuration HOT 1
- Runner is not being unregistered from Gitlab instance, when setting `state: absent` HOT 1
- (Debian) Install GitLab Runner fail when update in 22.04 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-gitlab-runner.