Open michag86 opened 7 months ago
Usually I do this by adding the option overridePWHistory
tasks:
- name: create a user
univention.ucs_modules.univention_directory_manager:
module: 'users/user'
state: 'present'
position: 'ou=orgunit,dc=mydomain,dc=net'
set_properties:
- property: 'username'
value: 'testuser1'
- property: 'lastname'
value: 'testuser1'
- property: 'password'
value: 'super_secret_password'
- property: "overridePWHistory"
value: "1"
But i agree that it should work without.
I tested and looks promising. So, already fixed version can be found here: https://github.com/univention/ansible-modules/releases/tag/v3.1.4
I would like to create a user with a task that looks like this:
When I run the playbook a second time, it results in this message:
Is there a way to apply the password only on creation? Something like the update_password option from the orphaned ansible module from @keachi https://docs.ansible.com/ansible/latest/collections/community/general/udm_user_module.html#parameter-update_password