Pure-Storage-Ansible / FlashArray-Collection

Ansible Collection for Pure Storage FlashArray
GNU General Public License v3.0
19 stars 21 forks source link

Unable to disable directory service with purefa_ds #492

Closed ryuyamag closed 8 months ago

ryuyamag commented 8 months ago

My customer is trying to disable Directory Service. Using the same syntax as in the example, this 1.22.0 requires a bind password. Can I ask for help with this problem?

• Ansible version : core 2.15.5 • FlashArray Collection version: 1.22.0 • Purity version: 6.3.13 • FlashArray module causing the failure: purefa_ds • An example task that fails: disable • Response from ansible-playbook -vvvv when running a failing task

fatal: [localhost]: FAILED! => { "changed": false, "invocation": { "module_args": { "aa_group": null, "api_token": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "base_dn": null, "bind_password": null, "bind_user": null, "dstype": "management", "enable": false, "fa_url": "10.229.192.60", "force_bind_password": "VALUE_SPECIFIED_IN_NO_LOG_PARAMETER", "group_base": null, "ro_group": null, "sa_group": null, "state": "present", "uri": null, "user_login": null, "user_object": null } }, "msg": "'bind_password' must be provided for this task" }

sdodsley commented 8 months ago

@ryuyamag to disable a DS you just use state: absent rather than clearing all the values with state: present.

ryuyamag commented 8 months ago

@sdodsley The customer is preparing this playbook for when they want to temporarily disable DS. And they said it worked fine with the previous version(1.21.0).

This works fine if I set bind_password correctly. so if purefa_ds continues with this specification, I will try to communicate that to the customer.

sdodsley commented 8 months ago

purefa_ds had a bug related to bind_password that was fixed. I think they were exploiting that bug

ryuyamag commented 8 months ago

@sdodsley Sure. I'll talk to the customer. I may consult with you again, but please close this request for now.