From bd4e1b580ba0aacd8f79f092806cac9beab6c58e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolas=20Mass=C3=A9?= Date: Fri, 8 Mar 2019 10:21:43 +0100 Subject: [PATCH] add the no_log option to the cleanup tasks + handle 404 --- tasks/cleanup.yaml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/cleanup.yaml b/tasks/cleanup.yaml index 390e653..02355d4 100644 --- a/tasks/cleanup.yaml +++ b/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 }}' validate_certs: no method: DELETE - status_code: 200 + status_code: 200,404 register: threescale_cicd_tmpresponse changed_when: 'threescale_cicd_tmpresponse.status == 200' when: 'threescale_cicd_api_service_id is defined' + no_log: '{{ threescale_cicd_nolog }}' - name: Delete the created ActiveDocs uri: url: 'https://{{ inventory_hostname }}/admin/api/active_docs/{{ threescale_cicd_api_activedocs_id }}.json?access_token={{ threescale_cicd_access_token|urlencode }}' validate_certs: no method: DELETE - status_code: 200 + status_code: 200,404 register: threescale_cicd_tmpresponse changed_when: 'threescale_cicd_tmpresponse.status == 200' when: 'threescale_cicd_api_activedocs_id is defined' + no_log: '{{ threescale_cicd_nolog }}'