We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Some task are depending on the definition of some role variables. For example the set proxy task is defined like it:
- name: Set proxy set_fact: agent_cmd_args: "{{ agent_cmd_args }} + ['--proxyurl \\'{{ az_devops_proxy_url }}\\'', '--proxyusername \\'{{ az_devops_proxy_username }}\\'', '--proxypassword \\'{{ az_devops_proxy_password }}\\'']" when: - az_devops_proxy_url is defined
The problem is that az_devops_proxy_url is defined to null in main.yml file az_devops_proxy_url: null
az_devops_proxy_url
null
main.yml
az_devops_proxy_url: null
With this initialisation the condition az_devops_proxy_url is defined is true and the task is not skipped.
To fix the issue we shall use this condition for all tasks depending a variable role definition:
when: - az_devops_proxy_url is not none
The text was updated successfully, but these errors were encountered:
No branches or pull requests
The issue
Some task are depending on the definition of some role variables.
For example the set proxy task is defined like it:
The problem is that
az_devops_proxy_url
is defined tonull
inmain.yml
fileaz_devops_proxy_url: null
With this initialisation the condition az_devops_proxy_url is defined is true and the task is not skipped.
The fix
To fix the issue we shall use this condition for all tasks depending a variable role definition:
The text was updated successfully, but these errors were encountered: