-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplaybook.yml
More file actions
64 lines (56 loc) · 1.4 KB
/
playbook.yml
File metadata and controls
64 lines (56 loc) · 1.4 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
---
- name: TLS-Scan auf allen Hosts durchführen
hosts: gmkservers
gather_facts: false
roles:
- sslscan
- name: Ergebnisse einsammeln
hosts: gmkservers
gather_facts: false
tasks:
- name: Lokales results/-Verzeichnis anlegen
local_action:
module: file
path: "./results"
state: directory
mode: '0755'
run_once: true
- name: host.csv holen
fetch:
src: /tmp/tls_results.csv
dest: "./results/{{ inventory_hostname }}_tls.csv"
flat: yes
- name: host_error.csv holen
fetch:
src: /tmp/tls_errors.csv
dest: "./results/{{ inventory_hostname }}_errors.csv"
flat: yes
- name: Remote tls_results.csv löschen
file:
path: "/tmp/tls_results.csv"
state: absent
become: true
- name: Remote tls_errors.csv löschen
file:
path: "/tmp/tls_errors.csv"
state: absent
become: true
- name: tls_scan.py löschen
file:
path: "/tmp/tls_scan.py"
state: absent
- name: discover_sockets.py löschen
file:
path: "/tmp/discover_sockets.py"
state: absent
- name: HTML-Report erzeugen (optional)
hosts: localhost
gather_facts: false
tags:
- report
tasks:
- name: report.py ausführen
local_action:
module: command
cmd: "python3 report.py"
chdir: "{{ playbook_dir }}"