Code Monkey home page Code Monkey logo

Comments (7)

riemers avatar riemers commented on May 20, 2024

@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.

karlosss avatar karlosss commented on May 20, 2024

@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.

riemers avatar riemers commented on May 20, 2024

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.

karlosss avatar karlosss commented on May 20, 2024

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.

riemers avatar riemers commented on May 20, 2024

Yeah, only the first line seems valid, nothing else. I'am not in the opportunity to test it now.

from ansible-gitlab-runner.

karlosss avatar karlosss commented on May 20, 2024

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.

riemers avatar riemers commented on May 20, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.