servicenow.itsm.configuration_item_batch module -- Manage ServiceNow configuration items in batch mode
This module is part of the servicenow.itsm collection (version 2.4.0).
It is not included in ansible-core
. To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install servicenow.itsm
.
To use it in a playbook, specify: servicenow.itsm.configuration_item_batch
.
New in servicenow.itsm 1.2.0
- Create, update ServiceNow configuration items in batch mode.
- For more information, refer to the ServiceNow configuration management documentation at https://docs.servicenow.com/bundle/tokyo-servicenow-platform/page/product/configuration-management/reference/cmdb-table-property-descriptions.html\ .
This module has a corresponding action plugin.
servicenow.itsm.configuration_item
Manage ServiceNow configuration items.
servicenow.itsm.configuration_item_info
List ServiceNow configuration item.
- name: Update CMDB with some data
servicenow.itsm.configuration_item_batch:
sys_class_name: cmdb_ci_ec2_instance
id_column_set: vm_inst_id
dataset:
- instance_id: 12345
public_ip_address: 1.2.3.4
tags:
Name: my_name
- instance_id: 54321
public_ip_address: 4.3.2.1
tags:
Name: other_name
map:
vm_inst_id: instance_id
ip_address: public_ip_address
name: tags.Name
- name: Identify CMDB item using combination of two columns
servicenow.itsm.configuration_item_batch:
sys_class_name: cmdb_ci_server
id_column_set:
- name
- ip_address
dataset: "{{ input_data }}"
map:
name: tags.Name
ip_address: private_ip_address
The following are the fields unique to this module:
- Manca Bizjak (@mancabizjak)
- Miha Dolinar (@mdolin)
- Tadej Borovsak (@tadeboro)