test ok :)
This commit is contained in:
4
scan.yml
4
scan.yml
@@ -122,7 +122,7 @@
|
||||
|
||||
- ansible.builtin.lineinfile:
|
||||
path: "{{ playbook_dir }}/scan/https/{{ item.invocation.module_args.host.split('.')[0] }}/{{ item.invocation.module_args.host.split('.')[1] }}/{{ item.invocation.module_args.host.split('.')[2] }}.csv"
|
||||
line: "IP,CN,ISSUER COUNTRY,ISSUER ORGA,REVERSE"
|
||||
line: "IP,PORT,CN,ISSUER COUNTRY,ISSUER ORGA,REVERSE"
|
||||
insertbefore: BOF
|
||||
create: yes
|
||||
loop: "{{ cert.results }}"
|
||||
@@ -131,7 +131,7 @@
|
||||
|
||||
- ansible.builtin.lineinfile:
|
||||
path: "{{ playbook_dir }}/scan/https/{{ item.invocation.module_args.host.split('.')[0] }}/{{ item.invocation.module_args.host.split('.')[1] }}/{{ item.invocation.module_args.host.split('.')[2] }}.csv"
|
||||
line: "{{ item.invocation.module_args.host }},{{ item.subject.CN | default('no CN') }},{{ item.issuer.C | default('no issuer Country') }},{{ item.issuer.O| default('no issuer Orga') }},{{ reverse_dns_list[my_idx]|default('no reverse') }}"
|
||||
line: "{{ item.invocation.module_args.host }},{{ item.invocation.module_args.port }},{{ item.subject.CN | default('no CN') }},{{ item.issuer.C | default('no issuer Country') }},{{ item.issuer.O| default('no issuer Orga') }},{{ reverse_dns_list[my_idx]|default('no reverse') }}"
|
||||
create: yes
|
||||
state: present
|
||||
loop: "{{ cert.results }}"
|
||||
|
||||
Reference in New Issue
Block a user