README.md Update

This commit is contained in:
ByeonJungHun
2024-01-04 14:35:01 +09:00
parent a935339d2f
commit b998417c97
4 changed files with 13 additions and 12 deletions

View File

@@ -1,6 +1,6 @@
#!/bin/bash
resultfile="Results_$(date '+%F_%H:%M:%S').txt"
resultfile="/tmp/$(hostname).txt"
U_01() {
echo "" >> $resultfile 2>&1

View File

@@ -16,13 +16,11 @@
when: "'nas' in group_names"
- debug:
msg: "취약점 {{ item }} 발견"
loop: "{{ check_status.stdout_lines }}"
msg: "취약점 {{ check_status.stdout_lines }} 발견"
when: "'nas' in group_names"
- debug:
msg: "취약점 {{ item }} 양호"
loop: "{{ check_ok.stdout_lines }}"
msg: "취약점 {{ check_ok.stdout_lines }} 양호"
when: "'nas' in group_names"
- name: Create README.md
@@ -41,4 +39,5 @@
when: "'nas' in group_names"
- debug:
msg: "결과 확인 : https://github.com/CloudMOA/security_check.git"
msg: "결과 확인 : https://github.com/CloudMOA/security_check.git"
when: "'nas' in group_names"

View File

@@ -1,8 +1,8 @@
| 이름 | IP | 상태 요약 | 상세 보기 |
| --- | --- | --- | --- |
| 이름 | 상태 요약 | 상세 보기 |
| --- | --- | --- |
{% for vulnerable in check_status.stdout_lines %}
| {{ vulnerable|splitext|first }} | {{ hostvars[vulnerable|splitext|first]['ansible_host'] }} | 취약 | http://10.10.43.42:8080/{{ vulnerable }} |
| {{ vulnerable|splitext|first }} | 취약 | http://10.10.43.42:8080/{{ vulnerable }} |
{% endfor %}
{% for good in check_ok.stdout_lines %}
| {{ good|splitext|first }} | {{ hostvars[vulnerable|splitext|first]['ansible_host'] }} | 양호 | http://10.10.43.42:8080/{{ good }} |
| {{ good|splitext|first }} | 양호 | http://10.10.43.42:8080/{{ good }} |
{% endfor %}