gantsign / ansible-role-golang

Ansible role for installing the Go language SDK

Home Page:https://galaxy.ansible.com/gantsign/golang

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`The task includes an option with an undefined variable.`

selfagency opened this issue · comments

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]

@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.