`The task includes an option with an undefined variable.`
selfagency opened this issue · comments
daniel sieradski commented
When I attempt to use this module, I get the following error:
The task includes an option with an undefined variable. The error was:
'ansible_env' is undefined
The error appears to be in '/root/.ansible/roles/gantsign.golang/tasks/main.yml': line 20, column 3,
but may be elsewhere in the file depending on the exact syntax problem.
The offending line appears to be:
- name: create download directory
^ here
ansible 2.9.6
config file = /etc/ansible/ansible.cfg
configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
ansible python module location = /usr/lib/python3/dist-packages/ansible
executable location = /usr/bin/ansible
python version = 3.8.10 (default, Nov 14 2022, 12:59:47) [GCC 9.4.0]
John Freeman commented
@selfagency thanks for reporting this issue, sorry for the late response. You can find a fix for this issue in version 3.1.3 of this role.