Code Monkey home page Code Monkey logo

Comments (7)

riemers avatar riemers commented on May 20, 2024 1

liked the idea ;p

from ansible-gitlab-runner.

riemers avatar riemers commented on May 20, 2024

Like how it is now right?

from ansible-gitlab-runner.

thibaultsmnt avatar thibaultsmnt commented on May 20, 2024

Yes exactly! Thanks

from ansible-gitlab-runner.

fleaz avatar fleaz commented on May 20, 2024

Hey,
I just ran into the same problem because I wrote my host vars by hand and didn't defined the docker_image line. Debugging was quite cumbersome because I had to get rid of the no_log to see the actual error message and debug the problem :/

Why not set a sane default for docker_image like alpine, instead of "" which will break the task? From what I saw, this change would require just two lines changed.

from ansible-gitlab-runner.

riemers avatar riemers commented on May 20, 2024

In the example it is set to "alpine" is that not what you are referring to?

from ansible-gitlab-runner.

fleaz avatar fleaz commented on May 20, 2024

No, I'm referring to the actual register_runner.yml task. In line 44 we have

    --docker-image '{{ gitlab_runner.docker_image|default("") }}'

Which results in an empty --docker-image flag for the register which will then fail because it's an required parameter. And because of the no_log this is hard to debug because you don`t get any output.

My idea was to change this default("") part in the task itself and insert alpine over there. This would make the playbook more robust and it would also run fine if one doesn"t define a docker_image in its vars

from ansible-gitlab-runner.

fleaz avatar fleaz commented on May 20, 2024

Awesome. Thanks for the quick fix :)

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.