Bug #25579
closedwith "Ansible Roles Manager" and "View hosts" roles, user still needs "Remote Excution User" to run roles on host
Description
Description of problem:
User with "Ansible Roles Manager" and "View hosts" roles, still needs "Remote Excution User" to run roles on host.
How reproducible:
always
Steps to Reproduce:
1. Create user with "Ansible Roles Manager" and "View hosts" roles
2. Have host with 2 Ansible roles attached
3. Login as that new user
4. Hosts -> All hosts -> <host>
Actual results:
There is no "Run Ansible roles" button, although I have "play_roles_on_host" permission
Expected results:
I would expect role and permission names matches to what they allow you to do
Updated by Ondřej Ezr about 4 years ago
- Subject changed from with "Ansible Roles Manager" and "View hosts" roles, user still needs "Remote Excution User" to run roles on host to with "Ansible Roles Manager" and "View hosts" roles, user still needs "Remote Excution User" to run roles on host
- Status changed from New to Resolved
This has already been fixed.
Updated by Ondřej Ezr almost 4 years ago
We are not checking the permissions when displaying button, so to resolve this these two should be fixed together:
- Users who do not have permissions to run ansible roles should not see the button
- play_ansible_roles should be enough by itself and not need to have run_rex as well
Updated by Ondřej Ezr almost 4 years ago
- Related to Bug #33143: Host REX buttons visible for unauthorized user added
Updated by The Foreman Bot almost 4 years ago
- Status changed from New to Ready For Testing
- Assignee set to Ondřej Ezr
- Pull request https://github.com/theforeman/foreman_ansible/pull/434 added
Updated by Ondřej Ezr almost 4 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_ansible|10097273556879e612780c2a8700d5642574ec01.
Updated by The Foreman Bot almost 4 years ago
- Pull request https://github.com/theforeman/foreman_ansible/pull/440 added
Updated by The Foreman Bot almost 4 years ago
- Pull request https://github.com/theforeman/foreman_ansible/pull/441 added
Updated by Ondřej Ezr almost 4 years ago
- Fixed in Releases foreman_ansible-7.0.0 added