Use Ansible to set multiple affected or impacted configuration items on a change_request
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-13-2023 07:15 PM
I've been using Ansible with a PDI to test creation and manipulation of change_requests. I'm using the servicenow.itsm Ansible collection. https://github.com/ansible-collections/servicenow.itsm
While I can set a primary cmdb configuration item (cmdb_ci), I have not yet figured out how to add additional configuration items can be added in the ServiceNow webui within "Affected CIs" (and also "Impacted Services/CIs") section(s).
Guidance is appreciated.
Thoughts?
Note: I also have a discussion thread on github that has received no responses in two weeks now. Once I have a solution, I plan to post details on both places. https://github.com/ansible-collections/servicenow.itsm/discussions/246
Thank you
-M
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-20-2023 06:37 PM
Update:
I received guidance from a helpful member of the ServiceNow community over on github. In order to add affected and impacted CIs it necessary to have a separate Ansible task that utilizes servicenow.itsm.api
Best,
-M