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