Comments (7)
liked the idea ;p
from ansible-gitlab-runner.
Like how it is now right?
from ansible-gitlab-runner.
Yes exactly! Thanks
from ansible-gitlab-runner.
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.
In the example it is set to "alpine" is that not what you are referring to?
from ansible-gitlab-runner.
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.
Awesome. Thanks for the quick fix :)
from ansible-gitlab-runner.
Related Issues (20)
- "The conditional check ''Executor' in json_item' failed HOT 4
- ansible-lint HOT 7
- "The conditional check ''Executor' in json_item' failed HOT 4
- Support of gitlab 15.6+ runners registration way. HOT 13
- "No package matching 'gitlab-runner' is available" HOT 14
- Removed from galaxy HOT 7
- 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
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.