- name: Create Active User
user:
name: "{{ item }}"
uid: "{{ management_active_users[item].uid | default(omit) }}"
comment: "{{ management_active_users[item].full_name | default('') }}"
createhome: "{{ management_active_users[item].createhome |
default('yes') }}"
group: "{{ management_active_users[item].group | default(omit) }}"
groups: "{{ management_active_users[item].groups | default('') |
join(',') }}"
shell: "{{ management_active_users[item].shell | default('/bin/bash')
}}"
append: "{{ management_active_users[item].append | default('no') }}"
state: "{{ management_active_users[item].state | default('present') }}"
with_items: "{{ management_active_users }}"
when: management_active_users is defined
- name: Setup Active User Password
user:
name: "{{ item }}"
password: "{{ user_passwd | password_hash('sha512') }}"
update_password: on_create
with_items: "{{ management_active_users }}"
when: management_active_users[item].password is defined
When I set up update_password: on_create is not working, still will update
the user password, how can i fixed it ?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/4f7c2876-12b5-4c64-8949-d3f43ce647c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.