You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When we are adding a new set of permissions to a job template as code using this collection on latest i.e. 2.5.0 we have a problem when running the controller_roles roles with the variable "teams".
DESCRIPTION=Red Hat Ansible Automation Platform Supported Execution Environment
Desired Behavior
When attempting to run the role we are unable to use the variable "teams", this appears to be a bug and is easily reproducible. We desire to be able to setup a Job Template so that users across multiple teams can run the Job Template.
The issue here is that the ansible.controller.role module does not yet support the teams option and the only way to get access to this option at the moment is to make use of the upstream awx.awx collection.
As a result if you wanted to keep making use of the certified collection you won't be able to use the teams or users options until at least the next release of the downstream collection.
It almost certainly will be added to the next release, but the release cycle is related to the release cycle of AAP itself and as 2.4 only just dropped it'll likely be a couple of months
I am closing this, as of right now the latest update 4.4.7 did not include the improvement, its still waiting to go through QA, but these roles currently support it upstream, its just a matter of time to get to downstream ansible.controller.
Summary
When we are adding a new set of permissions to a job template as code using this collection on latest i.e. 2.5.0 we have a problem when running the controller_roles roles with the variable "teams".
Issue Type
Ansible, Collection, Controller details
OS / ENVIRONMENT
DESCRIPTION=Red Hat Ansible Automation Platform Supported Execution Environment
Desired Behavior
When attempting to run the role we are unable to use the variable "teams", this appears to be a bug and is easily reproducible. We desire to be able to setup a Job Template so that users across multiple teams can run the Job Template.
Actual Behavior
Please give some details of what is actually happening.
Include a minimum complete verifiable example with:
TASK [redhat_cop.controller_configuration.roles : Configure Roles | Wait for finish the Roles creation] ********************************************************************************************** failed: [my.server.name] (item={'failed': 0, 'started': 1, 'finished': 0, 'ansible_job_id': 'j526170889618.4099005', 'results_file': '/root/.ansible_async/j526170889618.4099005', 'changed': False, '__controller_role_item': [{'job_templates': ['AAP - Testing'], 'teams': 'Ansible Users', 'roles': ['read', 'execute'], 'state': 'present'}, 'read'], 'ansible_loop_var': '__controller_role_item'}) => {"__controller_role_job_async_results_item": {"__controller_role_item": [{"job_templates": ["AAP - Testing"], "roles": ["read", "execute"], "state": "present", "teams": "Ansible Users"}, "read"], "ansible_job_id": "j526170889618.4099005", "ansible_loop_var": "__controller_role_item", "changed": false, "failed": 0, "finished": 0, "results_file": "/root/.ansible_async/j526170889618.4099005", "started": 1}, "ansible_job_id": "j526170889618.4099005", "ansible_loop_var": "__controller_role_job_async_results_item", "attempts": 1, "changed": false, "finished": 1, "msg": "Unsupported parameters for (role) module: teams. Supported parameters include: controller_config_file, controller_host, controller_oauthtoken, controller_password, controller_username, credential, credentials, instance_groups, inventories, inventory, job_template, job_templates, lookup_organization, organization, organizations, project, projects, role, state, target_team, target_teams, team, user, validate_certs, workflow, workflows (tower_config_file, tower_host, tower_oauthtoken, tower_password, tower_username, tower_verify_ssl).", "results_file": "/root/.ansible_async/j526170889618.4099005", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []} failed: [my.server.name] (item={'failed': 0, 'started': 1, 'finished': 0, 'ansible_job_id': 'j647266013775.4099029', 'results_file': '/root/.ansible_async/j647266013775.4099029', 'changed': False, '__controller_role_item': [{'job_templates': ['AAP - Testing'], 'teams': 'Ansible Users', 'roles': ['read', 'execute'], 'state': 'present'}, 'execute'], 'ansible_loop_var': '__controller_role_item'}) => {"__controller_role_job_async_results_item": {"__controller_role_item": [{"job_templates": ["AAP - Testing"], "roles": ["read", "execute"], "state": "present", "teams": "Ansible Users"}, "execute"], "ansible_job_id": "j647266013775.4099029", "ansible_loop_var": "__controller_role_item", "changed": false, "failed": 0, "finished": 0, "results_file": "/root/.ansible_async/j647266013775.4099029", "started": 1}, "ansible_job_id": "j647266013775.4099029", "ansible_loop_var": "__controller_role_job_async_results_item", "attempts": 1, "changed": false, "finished": 1, "msg": "Unsupported parameters for (role) module: teams. Supported parameters include: controller_config_file, controller_host, controller_oauthtoken, controller_password, controller_username, credential, credentials, instance_groups, inventories, inventory, job_template, job_templates, lookup_organization, organization, organizations, project, projects, role, state, target_team, target_teams, team, user, validate_certs, workflow, workflows (tower_config_file, tower_host, tower_oauthtoken, tower_password, tower_username, tower_verify_ssl).", "results_file": "/root/.ansible_async/j647266013775.4099029", "started": 1, "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}
STEPS TO REPRODUCE
The text was updated successfully, but these errors were encountered: