-
Notifications
You must be signed in to change notification settings - Fork 0
/
servicenow.yaml
36 lines (32 loc) · 899 Bytes
/
servicenow.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
---
- hosts:
- all
tasks:
- name: Install servicenow collection
ansible.builtin.command: ansible-galaxy collection install servicenow.itsm
- hosts:
- all
tasks:
- name: Create change request
servicenow.itsm.change_request:
instance:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
type: standard
state: new
requested_by: admin
short_description: Install new Cisco
description: Please install new Cat. 6500 in Data center 01
priority: moderate
risk: low
impact: low
other:
expected_start: 2021-12-02
- name: Retrieve all incidents
servicenow.itsm.incident_info:
instance:
host: "{{ host }}"
username: "{{ username }}"
password: "{{ password }}"
register: result