Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

controller_lables says organization is optional, but task shows as required #999

Closed
MallocArray opened this issue Dec 9, 2024 · 1 comment · Fixed by #1000
Closed

controller_lables says organization is optional, but task shows as required #999

MallocArray opened this issue Dec 9, 2024 · 1 comment · Fixed by #1000
Labels
bug Something isn't working new New issue, this should be removed once reviewed

Comments

@MallocArray
Copy link
Contributor

Summary

infra.aap_configuration.controller_labels shows in the README under Data Structure that organization is not required.
image

When running this against AWX 24.6.1 with just a list of names, it fails
FAILED! => {"msg": "Mandatory variable 'organization' not defined."}

Issue Type

  • Bug Report

Ansible, Collection, Controller details

ansible --version
ansible [core 2.16.13]
  config file = /runner/ansible.cfg
  configured module search path = ['/root/.ansible/plugins/modules', '/usr/share/ansible/plugins/modules']
  ansible python module location = /usr/local/lib/python3.12/site-packages/ansible
  ansible collection location = /runner/collections
  executable location = /usr/local/bin/ansible
  python version = 3.12.6 (main, Sep  9 2024, 00:00:00) [GCC 11.5.0 20240719 (Red Hat 11.5.0-2)] (/usr/bin/python3.12)
  jinja version = 3.1.4
  libyaml = True
ansible-galaxy collection list
awx.awx                   24.6.1 
infra.aap_configuration   3.1.0  

Controller version
AWX 24.6.1
  • ansible installation method: one of source, pip, OS package, EE
    EE

OS / ENVIRONMENT

Desired Behavior

A datastructure with only a list of names of labels will result in Labels being added to AWX

Actual Behavior

Task failed because the organization was not set

Please give some details of what is actually happening.
Include a [minimum complete verifiable example] with:

  • playbook / task
  • configuration file / list
  • error
TASK [infra.aap_configuration.controller_labels : Managing Labels] *******************************************************************************************************
fatal: [awx.domain.com]: FAILED! => {"msg": "Mandatory variable 'organization'  not defined."}

STEPS TO REPRODUCE

controller_labels:
  - name: activedirectory
  - name: awx
  - name: azure
@MallocArray MallocArray added bug Something isn't working new New issue, this should be removed once reviewed labels Dec 9, 2024
@djdanielsson
Copy link
Collaborator

it does appear they updated the module to require this now so thanks for making the documentation match

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working new New issue, this should be removed once reviewed
Projects
None yet
2 participants