1 Rookie
•
41 Posts
0
916
April 25th, 2023 13:00
Powerscale Ansible: LDAP Module not Idempotent
Hi @jennifer_john,
Whenever I run the below code, I get a "changed" instead of an "ok" after the LDAP Provider is already created
- name: Create LDAP Provider
dellemc.powerscale.ldap:
onefs_host: "{{ inventory_hostname }}"
port_no: "{{ isilon_port }}"
verify_ssl: false
api_user: "{{ isilon_user }}"
api_password: "{{ isilon_password }}"
ldap_name: "{{ team.name }}"
server_uris: "{{ team.ldap.server_uris }}"
server_uri_state: "{{ team.ldap.server_uri_state }}"
base_dn: "{{ base_dn }}"
ldap_parameters:
groupnet: "{{ groupnet }}"
state: "present"
register: out_ldap
delegate_to: "{{ groups['storage_server'][0] }}"
thanks.
glenn.
jennifer_john
1 Rookie
1 Rookie
•
79 Posts
0
May 3rd, 2023 11:00
Hi @gdny
Thank you for sharing the updated logs, This is a defect, we will work on fixing it in the upcoming release. I have also shared the fix over email for verification.
Thanks,
Jennifer
jennifer_john
1 Rookie
1 Rookie
•
79 Posts
0
April 26th, 2023 10:00
Hi @gdny
Could you share the output of tail -10 ansible_powerscale.log on executing idempotent task since Idempotency seem to work
Thanks,
Jennifer
gdny
1 Rookie
1 Rookie
•
41 Posts
0
April 26th, 2023 10:00
Hi @jennifer_john
The below excerpt includes a few other tasks, but the:
2023-04-26 13:38:07,536 ldap.py INFO : LDAP provider updated successfully.
constantly repeats every time I run the playbook.
thanks.
glenn.
jennifer_john
1 Rookie
1 Rookie
•
79 Posts
0
April 28th, 2023 06:00
Hi @gdny
I have shared the steps to add additional log statements in ldap.py to capture logging, as I could not share the updated module file over email.
Could you please share the updated logs or let me know if a webex would help too
Thanks,
Jennifer.
gdny
1 Rookie
1 Rookie
•
41 Posts
0
May 1st, 2023 12:00
Hi @jennifer_john,
Sorry it took so long to get back to you. I ran the command a few time:
Let me know if you need anything else.
thanks
glenn.