add line number to output

This commit is contained in:
Chris Hammer 2023-11-10 13:29:28 -05:00
parent 8e3134179b
commit 21815d7ee1

View File

@ -100,6 +100,7 @@
ansible.builtin.debug: ansible.builtin.debug:
msg: msg:
- "File: {{ item['location']['path'] }}" - "File: {{ item['location']['path'] }}"
- "Line Number: {{ item['location']['lines']['begin'] }}"
- "Level: {{ item['level'] }}" - "Level: {{ item['level'] }}"
- "Severity: {{ item['severity'] }}" - "Severity: {{ item['severity'] }}"
- "Description: {{ item['description'] }}" - "Description: {{ item['description'] }}"
@ -112,6 +113,7 @@
ansible.builtin.debug: ansible.builtin.debug:
msg: msg:
- "File: {{ item['location']['path'] }}" - "File: {{ item['location']['path'] }}"
- "Line Number: {{ item['location']['lines']['begin'] }}"
- "Level: {{ item['level'] }}" - "Level: {{ item['level'] }}"
- "Severity: {{ item['severity'] }}" - "Severity: {{ item['severity'] }}"
- "Description: {{ item['description'] }}" - "Description: {{ item['description'] }}"