-
Notifications
You must be signed in to change notification settings - Fork 71
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error when provisioning build agent - Templating type error #72
Comments
I also get this same error when deploying to RHEL 8. |
After doing some debugging, I have noticed that the Set Proxy task is trying to append lists together but for some reason, its converting it to a string. I commented out the Set Proxy tasks and was able to get past the error. Not sure why Ansible is making the string conversion. more toubleshooting will be required to figure out how to fix this but if you don't depend on the proxy step, comment it out on your downloaded tasks.
|
I have exactly the same error, CentOS 8 and ansible 2.13.3 and you? |
Same for me. Looks like adding lists should be moved inside the However, this might also need native types as formulated here Digging deeper into this. Ansible / Jinja2 is not really meant to be juggling with dynamic argument lists. Also there is lots of redundant duplications in the respective tasks (darwin, linux, windows). |
A working configuration for proxy facts : - name: Set proxy
block:
- name: Set proxy facts
ansible.builtin.set_fact:
agent_proxy_args:
- "--proxyurl + '{{ az_devops_proxy_url }}'"
- "--proxyusername + '{{ az_devops_proxy_username }}'"
- "--proxypassword + '{{ az_devops_proxy_password }}'"
- name: Append proxy configuration to agent commands
ansible.builtin.set_fact:
agent_cmd_args: "{{ agent_cmd_args + agent_proxy_args }}"
when:
- az_devops_proxy_url is not none |
I used the above suggestion for others:
|
Hello All,
I get the following error when running this role on ubuntu-focal-20.04.
It appears to be concatenating two lists, which are properly defined - I have no idea whats wrong!
Can anyone help?
Thanks,
Matt
The text was updated successfully, but these errors were encountered: