azd
This commit is contained in:
17
scan.yml
17
scan.yml
@@ -120,6 +120,15 @@
|
||||
msg: "{{ 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"
|
||||
loop: "{{ cert.results }}"
|
||||
|
||||
- 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,REVERSE"
|
||||
insertbefore: BOF
|
||||
create: yes
|
||||
loop: "{{ cert.results }}"
|
||||
delegate_to: localhost
|
||||
when: item.invocation is defined
|
||||
|
||||
- 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| default('no issuer') }},{{ reverse_dns_list[my_idx]|default('no reverse') }}"
|
||||
@@ -131,14 +140,6 @@
|
||||
delegate_to: localhost
|
||||
when: item.invocation is defined
|
||||
|
||||
- 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,REVERSE"
|
||||
insertbefore: BOF
|
||||
loop: "{{ cert.results }}"
|
||||
delegate_to: localhost
|
||||
when: item.invocation is defined
|
||||
|
||||
|
||||
# - name: Copy file with owner and permissions
|
||||
# ansible.builtin.copy:
|
||||
|
||||
Reference in New Issue
Block a user