README.md Update
This commit is contained in:
@@ -1,2 +1,4 @@
|
||||
| 이름 | IP | 상태 요약 | 상세 보기 |
|
||||
| --- | --- | --- | --- |
|
||||
| 이름 | 상태 요약 | 상세 보기 |
|
||||
| --- | --- | --- |
|
||||
| cmoa-master-1 | 취약 | http://10.10.43.42:8080/cmoa-master-1.txt |
|
||||
| cmoa-worker1-1 | 취약 | http://10.10.43.42:8080/cmoa-worker1-1.txt |
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
resultfile="Results_$(date '+%F_%H:%M:%S').txt"
|
||||
resultfile="/tmp/$(hostname).txt"
|
||||
|
||||
U_01() {
|
||||
echo "" >> $resultfile 2>&1
|
||||
|
||||
@@ -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
|
||||
@@ -42,3 +40,4 @@
|
||||
|
||||
- debug:
|
||||
msg: "결과 확인 : https://github.com/CloudMOA/security_check.git"
|
||||
when: "'nas' in group_names"
|
||||
@@ -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 %}
|
||||
Reference in New Issue
Block a user