diff --git a/playbooks/investigate_high_cpu.yml b/playbooks/investigate_high_cpu.yml index f5d272b..d237695 100644 --- a/playbooks/investigate_high_cpu.yml +++ b/playbooks/investigate_high_cpu.yml @@ -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