-
Feature Request
-
Resolution: Done
-
Major
-
None
-
2.5
-
False
-
-
False
Description
(02) ansible.platform.user module is missing an option to create an Auditor user (module has is_superuser option but missing is_auditor)
Steps to Reproduce
Actual Behavior
Error generated, user not modified.
Expected Behavior
Documentation provided:
Auditor used to be an attribute on the user model but its not granted through RBAC. Because of this you can't make a user an Auditor directly through the ansible.platform.user module. Instead you need to create the user with ansible.platform.user and then make a second call to ansible.platform: - name: Create timmy
ansible.platform.user:
username: timmy
state: present
register: timmy
- name: Make timmy an auditor
ansible.platform.role_user_assignment:
user: "{{ timmy.id }}"
role_definition: "Platform Auditor"