gitlab_geo.yml playbook queries for helm versions on all VM nodes in secondary cluster
The gitlab_geo.yml playbook queries for helm versions on all VM nodes in the primary cluster.
In the all.yml playbook, this is done through a localhost connection, running on the instance that runs Ansible, but for gitlab_geo.yml, it runs on all hosts.
Unfortunately, none of the hosts have helm installed, nor do they have access to the k8s cluster.
This causes the task to fail, on all nodes in the cluster.
The error message is:
fatal: [itestnov24-consul-2]: FAILED! => changed=false
cmd: helm search repo gitlab/gitlab -l -o json
invocation:
module_args:
_raw_params: helm search repo gitlab/gitlab -l -o json
_uses_shell: false
argv: null
chdir: null
creates: null
executable: null
removes: null
stdin: null
stdin_add_newline: true
strip_empty_ends: true
warn: false
msg: '[Errno 2] No such file or directory: b''helm'''
rc: 2
stderr: ''
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>
The full traceback is:
File "/tmp/ansible_ansible.legacy.command_payload_mmsdlqq7/ansible_ansible.legacy.command_payload.zip/ansible/module_utils/basic.py", line 2022, in run_command
cmd = subprocess.Popen(args, **kwargs)
File "/usr/lib/python3.8/subprocess.py", line 858, in __init__
self._execute_child(args, executable, preexec_fn, close_fds,
File "/usr/lib/python3.8/subprocess.py", line 1704, in _execute_child
raise child_exception_type(errno_num, err_msg, err_filename)
fatal: [itestnov24-consul-1]: FAILED! => changed=false
cmd: helm search repo gitlab/gitlab -l -o json
invocation:
module_args:
_raw_params: helm search repo gitlab/gitlab -l -o json
_uses_shell: false
argv: null
chdir: null
creates: null
executable: null
removes: null
stdin: null
stdin_add_newline: true
strip_empty_ends: true
warn: false
msg: '[Errno 2] No such file or directory: b''helm'''
rc: 2
stderr: ''
stderr_lines: <omitted>
stdout: ''
stdout_lines: <omitted>