Coder Social home page Coder Social logo

Comments (3)

guenhter avatar guenhter commented on May 28, 2024 1

Hm, I'd say (as the error message suggests) the line

content: "{{ lookup('template', 'config.runners.docker.services.j2') if gitlab_runner.docker_services is defined }}"

of the file update-config-runner.yml in the block:

#### [[runners.docker.services]] section ####
- name:  "{{ runn_name_prefix }} Set additional services"
  blockinfile:
    dest: "{{ temp_runner_config.path }}"
    content: "{{ lookup('template', 'config.runners.docker.services.j2') if gitlab_runner.docker_services is defined }}"
    state: "{{ 'present' if gitlab_runner.docker_services is defined else 'absent' }}"
    marker: "# {mark} runners.docker.services"
    insertafter: EOF
  check_mode: no
  notify:
  - restart_gitlab_runner
  - restart_gitlab_runner_macos

makes the problem. But it is strange because for me I also use shell runners and this is not problematic...

Maybe just adding an else branch to that if will sort out the issue, don't you think?

from ansible-gitlab-runner.

yoursweetginger avatar yoursweetginger commented on May 28, 2024

@guenhter

The error was: the inline if-expression on line 1 evaluated to false and no else section was defined

Yes, he's required else section.

from ansible-gitlab-runner.

github-actions avatar github-actions commented on May 28, 2024

Seems this message did not get a lot of love. This does not mean it was not seen but time wise might not have made it to proper attention. This is just the clean up action ;)

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.