Skip to content

Commit

Permalink
added change request schedule role and playbook
Browse files Browse the repository at this point in the history
  • Loading branch information
adworjan committed Aug 16, 2024
1 parent bcd540d commit 3035d35
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 11 deletions.
2 changes: 2 additions & 0 deletions .ansible-sign/sha256sum.txt
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,7 @@ db0cf6bab374ea48077c3898aea1602a570541a49ed82797b7459c9ce9a9824c ServiceNowCR_c
23412f272c4e18fb4fb5e9b1f445aa282e5aa04c1cc1e7a7d1c956bf001da7dc ServiceNowCR_implement.yml
ad1359a3104a9025cd6a4aa589c750cb76c11470cbe3edd520689e991f0efcf1 ServiceNowCatalog.yml
c376ddf5ff1d4d02f5bf92d54a93db9ab1d5ecdcd17e7eff18c5e5bcedef6560 ServiceNowCatalogCreate.yml
70072af3bc9b91fb1de27f6c16c910de46253f14e97e816bc22ab4c4f40a1f01 ServiceNow_change_request_schedule.yml
bde5f9bac8fc06d1948700fb6ed38b6e2255467918e9423cf08ffa08d3bbaad6 ServiceNow_cmdb_update.yml
206e122858f3ae645854e7624a96b16ada1936f15b623a8f34cd1deb5dfe234d ServiceNowticket.yml
b5b6f74b58134869395c82833f5e88224183dd0638673cb35b4d96be179072eb ServiceNowticket_close.yml
Expand All @@ -123,6 +124,7 @@ a3dc6c14a17f1d5b86f466016d23278f80b334c28b84a73d1671255af0cd57ac roles/servicen
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
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
de2faeda622d9985f01ed5df7b6af5367c9cd9549f07482331906bb9c444a022 roles/servicenow_cmdb/tasks/main.yml
Expand Down
22 changes: 11 additions & 11 deletions .ansible-sign/sha256sum.txt.sig
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
-----BEGIN PGP SIGNATURE-----

iQGzBAABCAAdFiEE/bJvyFHKKJdaZDOLTiIiIXrUDNEFAmaen8kACgkQTiIiIXrU
DNFH6QwAp+zw2GNIH32OJzPvbs6ENRYH8RN4yf/R4Dn9JrlHKyI5/Qau/2/7FZbp
OV1VtNgJNES4gGeZMLtR9sOT6QDYSbegWhg9VKs//BbqZDtLTG0m+30MZdyKZo7C
+LXay4IeW9v+i4RLqk6AakMPZC29GvQAm5SQQ+2gq8fKzpUZAD/GgothXqkpK4cc
bgN6Kvp3XvRzl7MOVyfQQSH+1REC1oyS17ElGm+ESQXiLkbRGHA9Yg7hQfVPGzx+
/PQEbWbzFckxbx507brCRVMui0yzhloHXoLRWlIr5hzM8Vp95vJ0Rlwn5f8LrY9n
inHxWG11P6TSMMl55SJSemYT3qkCBfrKqZCRAVj6pek/8OqWAPvc6g/GUqriwoy7
Zc/oQl8jcKABBbyrYo+Vrl9Mcw7eIb19/2so2EvvKwl/kqY5r0t4VdZg8TkyiVpj
+O42q1gVIl7ViwWYr0XL9wI+L1AvoU4hwUal4etwYQ4BAF2PUNt6WC++JTZoLwjV
qcw+mgqT
=46t3
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
-----END PGP SIGNATURE-----
7 changes: 7 additions & 0 deletions ServiceNow_change_request_schedule.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
- name: Schedule a Change Request in ServiceNow
hosts: localhost
gather_facts: false

roles:
- servicenow_change_request_schedule
20 changes: 20 additions & 0 deletions roles/servicenow_change_request_schedule/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
---
- name: Create a change request in ServiceNow with Start Date
servicenow.itsm.change_request:
type: normal
short_description: "{{ cr_short_description }}"
description: "{{ owner | default('Shadowman') }} requests {{ cr_description }}"
priority: high
risk: moderate
other:
start_date: "{{ date_time }}"
impact: low
assignment_group: CAB Approval
state: assess
register: request

- name: Pass along request information
ansible.builtin.set_stats:
data:
request: "{{ request }}"
per_host: false

0 comments on commit 3035d35

Please sign in to comment.