--- # GPFS AD connectivity/cache may not be able to return a user lookup from AD in a timely manner after a period of inactivity, until loop employed - name: Create fileset samba export ACL uri: url: "{{ createsambaaclEndpoint }}" user: "{{ clusterUser }}" password: "{{ clusterPassword }}" method: PUT validate_certs: no return_content: yes body_format: json body: "{{ smbexportfilesetacl }}" force_basic_auth: yes status_code: 202, 400 register: response until: response.json.status.code == 202 retries: 20 delay: 10 # - name: Report failure # fail: # msg: "Invalid request body" # when: response.json.status.code == 400 # - set_fact: # jobId: "{{ response.json.jobs[0].jobId }}" # - name: Check Job # include_tasks: checkjob.yml # vars: # failmessage: "Unable to apply ACL to share {{ filesetName }}" - name: Register dummy host with variable storage_fail add_host: name: "DUMMY_HOST" storage_fail: "Create share ACL, invalid request body or GPFS->AD connectivity issue, please notify administrator" when: response.json.status.code == 400 - set_fact: jobId: "{{ response.json.jobs[0].jobId }}" when: response.json.status.code != 400 - name: Check Job include_tasks: checkjob.yml vars: fail_message: "Unable to apply ACL to share" when: response.json.status.code != 400