18 lines
683 B
Django/Jinja
18 lines
683 B
Django/Jinja
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) }}"
|