Dear all,
Before upgrading to ansible-2.7.x, I was able to run the following playbook.
Dear all,
Before upgrading to ansible-2.7.x, I was able to run the following playbook.
This looks like a regression and should be fixed.
For a workaround, I would suggest to add an empty play that would only gather facts.
or just add 'default' for when fact gathering runs:
PIP_INDEX_URL: "{{ 'https://mirrors.aliyun.com/pypi/simple’ if
(ansible_domain|default('')).startswith('cn') else
'https://pypi.org/simple’ }}"