ansible-gitlab-runner icon indicating copy to clipboard operation
ansible-gitlab-runner copied to clipboard

'dict object' has no attribute 'executor'

Open justfortherec opened this issue 4 years ago • 1 comments

After updating gitlab-runner from version 1.2.3 to 1.6.17 I see the following error:

FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: 'dict object' has no attribute 'executor'\n\nThe error appears to have been in '/home/fxg/.ansible/roles/riemers.gitlab-runner/tasks/update-config-runner.yml': line 82, 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 runner executor section\n  ^ here\n"}

Explicitly adding the default option shell has resolved the problem.

 gitlab_runner_runners:
   - name: '{{ runner_name }}'
     tags:
       - python3
       - host-iron
+    executor: shell

Has this been changed to a mandatory value? From what I see in the failed task, it seems that it should default to shell anyway.

justfortherec avatar Jul 27 '20 07:07 justfortherec

If it should default to shell according to the task then could you check why it does not, time is limited for me at the moment.

riemers avatar Aug 14 '20 10:08 riemers

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 ;)

github-actions[bot] avatar Jun 28 '23 02:06 github-actions[bot]