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

awx.awx.role module failed to assign role to teams when using "lookup_organization" parameter #15581

Open
5 of 11 tasks
ecchong opened this issue Oct 11, 2024 · 0 comments
Open
5 of 11 tasks
Labels
component:awx_collection issues related to the collection for controlling AWX needs_triage type:bug

Comments

@ecchong
Copy link

ecchong commented Oct 11, 2024

Please confirm the following

  • I agree to follow this project's code of conduct.
  • I have checked the current issues for duplicates.
  • I understand that AWX is open source software provided for free and that I might not receive a timely response.
  • I am NOT reporting a (potential) security vulnerability. (These should be emailed to [email protected] instead.)

Bug Summary

awx.awx.role module failed when calling with "lookup_organization" pointing to a different organization where the teams are located.

AWX version

any

Select the relevant components

  • UI
  • UI (tech preview)
  • API
  • Docs
  • Collection
  • CLI
  • Other

Installation method

N/A

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

For example. We want to assign use for project ABC-project under organization ABC to team XYZ under organization XYZ.

tasks:
- name: Assign Project ABC-project use permission to Team XYZ across organizations
ansible.controller.role:
teams: XYZ
projects: ABC-project
role: use
lookup_organization: ABC

Expected results

Should be able to assign role permission.

Actual results

The task return failed message

fatal: [localhost]: FAILED! => {"changed": false, "msg": "There were 1 missing items, missing items: ['XYZ']"}

Additional information

It seems to be a bug in role.py

#15580

@github-actions github-actions bot added component:awx_collection issues related to the collection for controlling AWX needs_triage type:bug labels Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
component:awx_collection issues related to the collection for controlling AWX needs_triage type:bug
Projects
None yet
Development

No branches or pull requests

1 participant