Browse Source

add the no_log option to the cleanup tasks + handle 404

pull/50/head
Nicolas Massé 7 years ago
parent
commit
bd4e1b580b
  1. 6
      tasks/cleanup.yaml

6
tasks/cleanup.yaml

@ -5,17 +5,19 @@
url: 'https://{{ inventory_hostname }}/admin/api/services/{{ threescale_cicd_api_service_id }}.json?access_token={{ threescale_cicd_access_token|urlencode }}' url: 'https://{{ inventory_hostname }}/admin/api/services/{{ threescale_cicd_api_service_id }}.json?access_token={{ threescale_cicd_access_token|urlencode }}'
validate_certs: no validate_certs: no
method: DELETE method: DELETE
status_code: 200 status_code: 200,404
register: threescale_cicd_tmpresponse register: threescale_cicd_tmpresponse
changed_when: 'threescale_cicd_tmpresponse.status == 200' changed_when: 'threescale_cicd_tmpresponse.status == 200'
when: 'threescale_cicd_api_service_id is defined' when: 'threescale_cicd_api_service_id is defined'
no_log: '{{ threescale_cicd_nolog }}'
- name: Delete the created ActiveDocs - name: Delete the created ActiveDocs
uri: uri:
url: 'https://{{ inventory_hostname }}/admin/api/active_docs/{{ threescale_cicd_api_activedocs_id }}.json?access_token={{ threescale_cicd_access_token|urlencode }}' url: 'https://{{ inventory_hostname }}/admin/api/active_docs/{{ threescale_cicd_api_activedocs_id }}.json?access_token={{ threescale_cicd_access_token|urlencode }}'
validate_certs: no validate_certs: no
method: DELETE method: DELETE
status_code: 200 status_code: 200,404
register: threescale_cicd_tmpresponse register: threescale_cicd_tmpresponse
changed_when: 'threescale_cicd_tmpresponse.status == 200' changed_when: 'threescale_cicd_tmpresponse.status == 200'
when: 'threescale_cicd_api_activedocs_id is defined' when: 'threescale_cicd_api_activedocs_id is defined'
no_log: '{{ threescale_cicd_nolog }}'

Loading…
Cancel
Save