Files
dsk-iac/ansible/security_check/roles/security_check/templates/README.md.j2
2024-01-09 11:34:54 +09:00

8 lines
586 B
Django/Jinja

| 이름 | 아이피 | 상태 요약 | 상세 보기 |
| --- | --- | --- | --- |
{% for vulnerable in check_status.stdout_lines %}
| {{ vulnerable.split('.')[0] }} | {{ vulnerable.split('.')[1] }}.{{ vulnerable.split('.')[2] }}.{{ vulnerable.split('.')[3] }}.{{ vulnerable.split('.')[4] }} | 취약 | http://10.10.43.42:8080/{{ vulnerable }} |
{% endfor %}
{% for good in check_ok.stdout_lines %}
| {{ good.split('.')[0] }} | {{ good.split('.')[1] }}.{{ good.split('.')[2] }}.{{ good.split('.')[3] }}.{{ good.split('.')[4] }} | 양호 | http://10.10.43.42:8080/{{ good }} |
{% endfor %}