Skip to content

Environment variables documented but not working #233

Description

@mproehl

Bug Summary

I'm running this task:

  ansible.platform.user:
    username: jdoe
    first_name: Jane
    last_name: Doe
    email: jdoe@example.com
    password: "P@ssw0rd"
    state: present
    update_secrets: false

the following environment variables are defined:

GATEWAY_HOSTNAME and AAP_HOSTNAME

the resulting error:

fatal: [localhost]: FAILED! => {"changed": false, "msg": "gateway_url or gateway_hostname must be provided as task parameter or defined in inventory"}

I'm running AAP 2.7, ee-supported-rhel9 with collection version 2.7.20260630".
Same result for latest git/main version.

The environment variables GATEWAY_HOSTNAME and AAP_HOSTNAME are described in the modules docstring. Am I missing something?

Select the relevant components

  • Proxy
  • API
  • Other

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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