Initial project commit
This commit is contained in:
17
roles/rear_unmount/templates/syslog.j2
Normal file
17
roles/rear_unmount/templates/syslog.j2
Normal file
@ -0,0 +1,17 @@
|
||||
actor="{{ actor | default(item.actor) }}"
|
||||
title="{{ title | default(item.title) }}"
|
||||
{% if (item.actor is defined) and item.actor in remeditated_inhibitors %}
|
||||
flags="{{ item.flags + ['remediated_in_automation'] }}"
|
||||
{% else %}
|
||||
flags="{{ flags | default(item.flags) }}"
|
||||
{% endif %}
|
||||
summary="{{ summary | default(item.summary) }}"
|
||||
severity="{{ severity | default(item.severity) }}"
|
||||
{% if item.detail.remediations is defined %}
|
||||
remediation="{{
|
||||
item.detail.remediations | selectattr('type', 'equalto', 'hint') |
|
||||
map(attribute='context') | join(', ') }}"
|
||||
{% else %}
|
||||
remediation="{{ remediation | default('') }}"
|
||||
{% endif %}
|
||||
ansible_tower_job_id="{{ tower_job_id | default(None) }}"
|
Reference in New Issue
Block a user