servicenow incident update and close using ansible

252 views
Skip to first unread message

Akshay Jadhav

unread,
Feb 22, 2022, 6:22:20 AM2/22/22
to Ansible Project
Hi Guys,
Does anyone has any sample playbook for snow incident update and close(end to end automation for device reboot incident).As I am new to API part can someone please suggest how to fetch new incident from snow dashboard for "Node reboot alert" as a short description for incident. Thanks in advance.

Abhijeet Kasurde

unread,
Feb 22, 2022, 7:24:26 AM2/22/22
to ansible...@googlegroups.com
Hi Akshay,

Please go through this video https://www.youtube.com/watch?v=T8CtycTluos

Thanks,
Abhijeet

On Tue, Feb 22, 2022 at 4:52 PM Akshay Jadhav <aksha...@gmail.com> wrote:
Hi Guys,
Does anyone has any sample playbook for snow incident update and close(end to end automation for device reboot incident).As I am new to API part can someone please suggest how to fetch new incident from snow dashboard for "Node reboot alert" as a short description for incident. Thanks in advance.

--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8701cf38-6784-4554-b918-3cf3f649a44an%40googlegroups.com.


--
Thanks,
Abhijeet Kasurde

Roberto Paz

unread,
Feb 22, 2022, 7:40:46 AM2/22/22
to Ansible Project
My two cents: I saw approaches about this in the past. Most of them used SNOW API. You just have to build a proper JSON payload to interact with SNOW.

Abhijeet Kasurde

unread,
Feb 22, 2022, 7:49:33 AM2/22/22
to ansible...@googlegroups.com
Hi Roberto,

Using REST API with payload is ok, but does not provide idempotency and other Ansible features (check mode, diff etc.). I would still recommend to rely on servicenow.itsm collection.
 



--
Thanks,
Abhijeet Kasurde
Reply all
Reply to author
Forward
0 new messages