update
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
resultfile="/tmp/$(hostname).txt"
|
||||
resultfile="/tmp/$(hostname).$(hostname -I | awk '{print $1}').txt"
|
||||
|
||||
U_01() {
|
||||
echo "" >> $resultfile 2>&1
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
|
||||
- name: Copy Result File to Local
|
||||
fetch:
|
||||
src: "/tmp/{{ ansible_hostname }}.txt"
|
||||
src: "/tmp/{{ ansible_hostname }}.{{ ansible_host }}.txt"
|
||||
dest: "~/checklist/"
|
||||
flat: yes
|
||||
when: ansible_distribution == 'Ubuntu'
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
| 이름 | 상태 요약 | 상세 보기 |
|
||||
| --- | --- | --- |
|
||||
| 이름 | 아이피 | 상태 요약 | 상세 보기 |
|
||||
| --- | --- | --- | --- |
|
||||
{% for vulnerable in check_status.stdout_lines %}
|
||||
| {{ vulnerable|splitext|first }} | 취약 | http://10.10.43.42:8080/{{ vulnerable }} |
|
||||
| {{ 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|splitext|first }} | 양호 | http://10.10.43.42:8080/{{ good }} |
|
||||
| {{ good.split('.')[0] }} | {{ good.split('.')[1] }}.{{ good.split('.')[2] }}.{{ good.split('.')[3] }}.{{ good.split('.')[4] }} | 양호 | http://10.10.43.42:8080/{{ good }} |
|
||||
{% endfor %}
|
||||
1
security_check
Submodule
1
security_check
Submodule
Submodule security_check added at d8f842ba1a
@@ -2,5 +2,8 @@
|
||||
- hosts: all
|
||||
become: false
|
||||
gather_facts: true
|
||||
vars:
|
||||
git_user: sa_8001
|
||||
git_key: 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
|
||||
roles:
|
||||
- role: security_check
|
||||
|
||||
Reference in New Issue
Block a user