Modify attachment
This commit is contained in:
@@ -16,8 +16,10 @@
|
|||||||
changed_when: false
|
changed_when: false
|
||||||
|
|
||||||
- name: Create Problem Template
|
- name: Create Problem Template
|
||||||
ansible.builtin.set_fact:
|
ansible.builtin.template:
|
||||||
incident_report: "{{ lookup('template', '../templates/cpuhog_ticket.j2') }}"
|
src: '../templates/cpuhog_ticket.j2'
|
||||||
|
dest: /tmp/cpuhog_details.md
|
||||||
|
delegate_to: localhost
|
||||||
|
|
||||||
- name: Create SNow Incident
|
- name: Create SNow Incident
|
||||||
servicenow.itsm.incident:
|
servicenow.itsm.incident:
|
||||||
@@ -39,8 +41,9 @@
|
|||||||
description: "Generator URL: {{ alertmanager_generator_url }}"
|
description: "Generator URL: {{ alertmanager_generator_url }}"
|
||||||
impact: high
|
impact: high
|
||||||
urgency: high
|
urgency: high
|
||||||
other:
|
attachments:
|
||||||
user_input: "Information from Ansible: {{ incident_report }}"
|
- path: /tmp/cpuhog_details.md
|
||||||
|
name: cpuhog_details.md
|
||||||
register: problem_result
|
register: problem_result
|
||||||
|
|
||||||
- name: Update Incident
|
- name: Update Incident
|
||||||
|
|||||||
Reference in New Issue
Block a user