From 2bda4f6628c342e8039caff2c4e31ea27e8b8c4e Mon Sep 17 00:00:00 2001 From: Alex Dworjan Date: Fri, 16 Aug 2024 10:02:59 -0400 Subject: [PATCH] improve implement job --- .ansible-sign/sha256sum.txt | 4 ++-- .ansible-sign/sha256sum.txt.sig | 22 +++++++++---------- ServiceNowCR_implement.yml | 1 - .../tasks/servicenow_implement.yml | 10 +-------- 4 files changed, 14 insertions(+), 23 deletions(-) diff --git a/.ansible-sign/sha256sum.txt b/.ansible-sign/sha256sum.txt index 40498fd..4c4b5b4 100644 --- a/.ansible-sign/sha256sum.txt +++ b/.ansible-sign/sha256sum.txt @@ -101,7 +101,7 @@ db0cf6bab374ea48077c3898aea1602a570541a49ed82797b7459c9ce9a9824c ServiceNowCR_c 675d62c62ed528e495f8144290d181875521766c5cebb9661fc15552f1db1083 ServiceNowCR_closed.yml 874cbddd96b4a29ba61d770da124c9db0ff1cc2736a1d802c9aeebbc7ffe45b1 ServiceNowCR_create.yml 115f1fb0355698a830ed0d070a0d404d299633261364f38e4dc329811ee3c375 ServiceNowCR_deleted.yml -23412f272c4e18fb4fb5e9b1f445aa282e5aa04c1cc1e7a7d1c956bf001da7dc ServiceNowCR_implement.yml +97c831eff1abac9212abac46eb8922f93ecc8a3e092e0bd8545cb183fd30bff6 ServiceNowCR_implement.yml ad1359a3104a9025cd6a4aa589c750cb76c11470cbe3edd520689e991f0efcf1 ServiceNowCatalog.yml c376ddf5ff1d4d02f5bf92d54a93db9ab1d5ecdcd17e7eff18c5e5bcedef6560 ServiceNowCatalogCreate.yml 70072af3bc9b91fb1de27f6c16c910de46253f14e97e816bc22ab4c4f40a1f01 ServiceNow_change_request_schedule.yml @@ -123,7 +123,7 @@ a3dc6c14a17f1d5b86f466016d23278f80b334c28b84a73d1671255af0cd57ac roles/servicen 6e7ecd69274eacded20c661ff3b50567fbf1fe4b0c62138480815783f3566603 roles/servicenow_change_request/tasks/servicenow_close.yml 96fe8ffc8373291cdd82d3213a08eb1f73b4f09364b96db538941787a845a7ab roles/servicenow_change_request/tasks/servicenow_create.yml f24230fbcf3e3e8ead1a35ca1bc06ee6279cdd60180129a1d78e90dced09ce8f roles/servicenow_change_request/tasks/servicenow_deleted.yml -f3fff777c19e4539b6d639f3ac6d639d1bf55c177ed67366110aa6bc6b311137 roles/servicenow_change_request/tasks/servicenow_implement.yml +3841652179642981ddbf9d8ec47f2f8197702fb65e2fd4aab5714669c2ffcd52 roles/servicenow_change_request/tasks/servicenow_implement.yml dcc013f92cbd5aa01811d3e03352a6529a6d52068bbf23c85614a3b2a5a46081 roles/servicenow_change_request_schedule/tasks/main.yml a464004cbb41d95d683f7a25ae37a1813d17be673a1b2a834186ac123bd961fb roles/servicenow_change_request_wait/defaults/main.yml 5c15d56df4f343e4cee23d1f94953b6ff9f524ada30033d0c488835bbdcea6eb roles/servicenow_change_request_wait/tasks/main.yml diff --git a/.ansible-sign/sha256sum.txt.sig b/.ansible-sign/sha256sum.txt.sig index 6122a78..e3a6c3d 100644 --- a/.ansible-sign/sha256sum.txt.sig +++ b/.ansible-sign/sha256sum.txt.sig @@ -1,14 +1,14 @@ -----BEGIN PGP SIGNATURE----- -iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAma/Rf8ACgkQTiIiIXrU -DNH5jgv/Xv+/xwIH2O/O2phgdLEv0MMxEb4pQ+14rrcdkKulDzsU9LUaDsMPn8xe -T0oGOfCkA6lhb8YO7bmMyc7l7puh/LgCGrtnKYTs2pDBYmQN/xopTTq2iMSHuPp4 -x7Nu+xF20VP6JoCK9JDkUW4VJpAlfuO4x3/d6/9LUCG1Kuc7SCBjVokGalagq//v -KFdL1xjZzK/cVkEMC/tyi5896jJUm+hDXXO4b5L6P8mYzZ4q0dIVqmd2IfCt/ISA -vHFaFTJY1f/i2sH0fC1WIWg8dXgEdWE1SRocnhU7Y4wAQyvL1HU54wTGnB/o3ubu -eRQOy0k+mhIL54ocZSpsVMEIK4c4fCvMTrJw1rqjMW9f/lUDDgvIMVkwZNnyA2DG -o9WxbvZA6+GOd26VViZAE3p7lE6FOYgZnTmHg2FlCeI7CraLsTmCUKw8o9SDaEh8 -+Fh+V80GHKGOyRcVlmQ4Vm6DzdyJn7DayrfXLqqdekMW61YEeEM7T2in4UaF9v35 -GXThWF4A -=75qf +iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAma/W4wACgkQTiIiIXrU +DNHXbgv/dpErscFnoqYmnR47N6JFtRKn8BOiT4XsdqwZHjt3KhbqeFx2Q8xQkz3q +QOeoZiDCm1FubtJVa+Yar2Zd+nQPhvrMIgjPjeua/uPMp9OkCsb1EdOfLn4nj8Go +jQ2X8yJVuOV5DIpDulO+snHJvF+kVD0RFEOSXeaBakk9ATPfZ6EYyBYqwVqiw5Ux +TjiHZtuDndcD+9BqwQNQSf+VivEDWjt2xE3SpdpYppsPfc5PT/EwqJklbNzsI1t0 +/xvTMvEnkPJ4MEPR//cusHrkrkUUJENohTnMP8D14xwp6xhis7WrhHqDiLzlmBMN +msflcsPPAqLwC4LTzdlpYN6NlM4AoYMkOspsxzAG/kaPhoCTykX6VcjWC1hhN3Du +7DBGv0vGUzizsoVWLQVNXUl/NtS646EjjewTRSQjJo8ntIrDvAo9DiU4AOfjvBMy +dD41dDYMSzKr2QM6e8VSCaVEtc9u9f4CXnT7Vwua3x5tX0FcAk67wHh2LP8BnbGM +z0azrN0f +=AlQc -----END PGP SIGNATURE----- diff --git a/ServiceNowCR_implement.yml b/ServiceNowCR_implement.yml index 2485808..c25407b 100644 --- a/ServiceNowCR_implement.yml +++ b/ServiceNowCR_implement.yml @@ -2,7 +2,6 @@ - name: Implement a change request hosts: localhost gather_facts: false - connection: local vars: servicenow_cr: implement diff --git a/roles/servicenow_change_request/tasks/servicenow_implement.yml b/roles/servicenow_change_request/tasks/servicenow_implement.yml index ae2a884..0d4ff24 100644 --- a/roles/servicenow_change_request/tasks/servicenow_implement.yml +++ b/roles/servicenow_change_request/tasks/servicenow_implement.yml @@ -1,13 +1,5 @@ --- -- name: Schedule a change request in ServiceNow - servicenow.itsm.change_request: - state: scheduled - assignment_group: "{{ group | default(omit) }}" - number: "{{ request.record.number }}" - delegate_to: localhost - - name: Update to implement a change request in ServiceNow servicenow.itsm.change_request: state: implement - number: "{{ request.record.number }}" - delegate_to: localhost + number: "{{ change_request_number }}"