diff --git a/.ansible-sign/sha256sum.txt b/.ansible-sign/sha256sum.txt index 2cbcaa8..6d0b490 100644 --- a/.ansible-sign/sha256sum.txt +++ b/.ansible-sign/sha256sum.txt @@ -118,8 +118,9 @@ d8d966ccdf1e73840974c82ced8da6002e81ecd1c7a94250401f9d2441778dd0 ServiceNowtick f8f63300d2a511a2497b34ee831c4bec65d79f7780d2cc52989c977e4018698b roles/servicenow_catalog/tasks/main.yml ee48964111304a0741dcdad36426967a1784a923eba8dbea9622089072b7d52f roles/servicenow_catalog_create/tasks/main.yml dca8e6b77670bfa74e7302585937d64975a04bd09381c126d683d73fa7fd94c5 roles/servicenow_change_request/defaults/main.yml -5af0ae62a8d7097af67c55c0d31ebe6d4e28e0d2b547fc849b11dbc77b69527a roles/servicenow_change_request/tasks/main.yml +c5904b2efc88b5b975c966c58608b8efa25cb87ffa3897d4c0cdcb963d103695 roles/servicenow_change_request/tasks/main.yml a3dc6c14a17f1d5b86f466016d23278f80b334c28b84a73d1671255af0cd57ac roles/servicenow_change_request/tasks/servicenow_canceled.yml +8bfa1563cc9b89a15618ba615597a27eeceb214a86ec053bd0e2992e5101bfff roles/servicenow_change_request/tasks/servicenow_canceled_cr.yml 6e7ecd69274eacded20c661ff3b50567fbf1fe4b0c62138480815783f3566603 roles/servicenow_change_request/tasks/servicenow_close.yml 66c5294682f23256b05d468300152d8d8153714e9935dbc8f971ab61482ce979 roles/servicenow_change_request/tasks/servicenow_close_cr.yml 96fe8ffc8373291cdd82d3213a08eb1f73b4f09364b96db538941787a845a7ab roles/servicenow_change_request/tasks/servicenow_create.yml diff --git a/.ansible-sign/sha256sum.txt.sig b/.ansible-sign/sha256sum.txt.sig index ad5eb65..77d88cf 100644 --- a/.ansible-sign/sha256sum.txt.sig +++ b/.ansible-sign/sha256sum.txt.sig @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNATURE----- -iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAma/dBYACgkQTiIiIXr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g8I5xETF/0AT6WzRj6Thuh9eTS0H64eoQxr1C4A/reYuBfZ4UEZp +sYAw/kIF +=upvF -----END PGP SIGNATURE----- diff --git a/roles/servicenow_change_request/tasks/main.yml b/roles/servicenow_change_request/tasks/main.yml index fd54a61..1fe0445 100644 --- a/roles/servicenow_change_request/tasks/main.yml +++ b/roles/servicenow_change_request/tasks/main.yml @@ -28,6 +28,12 @@ - servicenow_cr == "canceled" - request is defined +- name: Cancel CR + ansible.builtin.include_tasks: servicenow_canceled_cr.yml + when: + - servicenow_cr == "canceled" + - change_request_number is defined + - name: Delete CR ansible.builtin.include_tasks: servicenow_deleted.yml when: diff --git a/roles/servicenow_change_request/tasks/servicenow_canceled_cr.yml b/roles/servicenow_change_request/tasks/servicenow_canceled_cr.yml new file mode 100644 index 0000000..c96cea5 --- /dev/null +++ b/roles/servicenow_change_request/tasks/servicenow_canceled_cr.yml @@ -0,0 +1,6 @@ +--- +- name: Cancel a change request in ServiceNow + servicenow.itsm.change_request: + state: canceled + number: "{{ change_request_number }}" + delegate_to: localhost