Skip to content

Undefined variable ansible_env #49

@kikearciniegas

Description

@kikearciniegas

Running/testing with default options from the README.md, the playbook fails with the following message:

fatal: [hostname-redacted]: FAILED! => {"msg": "The task includes an option with an undefined variable. The error was: {{ x_ansible_download_dir | default(ansible_env.HOME + '/.ansible/tmp/downloads') }}: 'ansible_env' is undefined\n\nThe error appears to be in '/Users/username-redacted/.ansible/roles/gantsign.antigen/tasks/install.yml': line 12, column 3, but may\nbe elsewhere in the file depending on the exact syntax problem.\n\nThe offending line appears to be:\n\n\n- name: create download directory\n ^ here\n"}

Where and how should this variable be defined?

Running antigen_version: '2.0.2' | ansible [core 2.11.6] | python version = 3.10.0

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions