question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cache_type variable seems to have become a mandatory variable

See original GitHub issue

cache_type variable seems to have become mandatory after this https://github.com/riemers/ansible-gitlab-runner/commit/5c9659ba1e6c31442c02f066357359c4bdfe03a9

TASK [riemers.gitlab-runner : Set cache s3 section] ******************************************************************************************************* Wednesday 12 February 2020 14:49:14 -0500 (0:00:00.591) 0:01:40.354 **** fatal: [vps3.cloudalbania.com]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'cache_type'\n\nThe error appears to be in '/home/bzanaj/git/pers/ansible-systems/roles/riemers.gitlab-runner/tasks/update-config-runner.yml': line 128, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: Set cache s3 section\n ^ here\n"}

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:14 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
besmirzanajcommented, Feb 12, 2020

both changes fixed the issue. will send a pull request

1reaction
riemerscommented, Feb 12, 2020

My bad…

change that line to:

state: "{{ 'present' if gitlab_runner.cache_type is defined else 'absent' }}"
Read more comments on GitHub >

github_iconTop Results From Across the Web

How to make multi row variable set itself mandatory
Solved: Hi, Currently, the multi row variable set itself is not made mandatory, ... Directly use UI policy and make the MRVS mandatory....
Read more >
CMake customization points, how to configure your project?
CMake has a lot of cache advanced variables that let you control a build, such as CMAKE_CXX_FLAGS which is the list of default...
Read more >
Server System Variables - MariaDB Knowledge Base
By convention, server variables have usually been specified with an underscore in the configuration files, and a dash on the command line.
Read more >
set — CMake 3.0.2 Documentation
Set a CMake, cache or environment variable to a given value. set(<variable> <value> [[CACHE ... If CACHE is used, <type> and <docstring> are...
Read more >
kubernetes executor caches overwritten variables from gitlab ...
Overwritten variables seems to be cached from one job to another. Steps to reproduce. Deploy a kubernetes gitlab-runner with the bellow ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found