Coder Social home page Coder Social logo

Comments (3)

philippwiesner avatar philippwiesner commented on May 24, 2024

After further investigating I found the problem: https://github.com/riemers/ansible-gitlab-runner/blob/master/tasks/register-runner.yml#L99 is only registering cache options for S3 but not for GCP or Azure.

from ansible-gitlab-runner.

NicolasIRAGNE avatar NicolasIRAGNE commented on May 24, 2024

hello, im quite a beginner to ansible so Im not sure Im doing everything correctly but I am currently having this problem

using

gitlab_runner_runners:
  - name: "{{ inventory_hostname }}"
    executor: docker
    cache_type: gcs
    cache_path: "gitlab-ci"
    cache_shared: true
    cache_gcs_bucket_name: "XXX"
    cache_gcs_credentials_file: "/etc/gitlab-runner/service-account.json"
    cache_dir: "/cache"

produces

  [runners.cache]
    [runners.cache.gcs]
      CredentialsFile = "/etc/gitlab-runner/service-account.json"
      BucketName = "shadow-runners-cache"
    Type = "gcs"
    Path = "gitlab-ci"
    Shared = true
    MaxUploadedArchiveSize = 0

which does not work. reordering manually fixes it.

I made sure I was using the correct version using

ansible-galaxy install git+https://github.com/riemers/ansible-gitlab-runner.git,2bbb712d2478a5cd18b155f5761dfce6d7665c7a

from ansible-gitlab-runner.

NicolasIRAGNE avatar NicolasIRAGNE commented on May 24, 2024

Nevermind, this was caused to an already existing config.toml file.

I fixed it by completely removing gitlab-runner files and running the playbook again.

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.