azdaz
This commit is contained in:
18
scan.yml
18
scan.yml
@@ -117,19 +117,19 @@
|
|||||||
|
|
||||||
- ansible.builtin.lineinfile:
|
- 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"
|
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"
|
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') }}"
|
||||||
create: yes
|
create: yes
|
||||||
loop: "{{ cert.results }}"
|
loop: "{{ cert.results }}"
|
||||||
|
loop_control:
|
||||||
|
index_var: my_idx
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
when: item.invocation is defined
|
when: item.invocation is defined
|
||||||
|
|
||||||
- ansible.builtin.lineinfile:
|
- 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"
|
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') }}"
|
line: "IP,CN,ISSUER,REVERSE"
|
||||||
#create: yes
|
insertbefore: BOF
|
||||||
loop: "{{ cert.results }}"
|
loop: "{{ cert.results }}"
|
||||||
loop_control:
|
|
||||||
index_var: my_idx
|
|
||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
when: item.invocation is defined
|
when: item.invocation is defined
|
||||||
|
|
||||||
@@ -163,6 +163,14 @@
|
|||||||
delegate_to: localhost
|
delegate_to: localhost
|
||||||
|
|
||||||
|
|
||||||
|
# - name: Run a simple command (command)
|
||||||
|
# community.docker.docker_container_exec:
|
||||||
|
# container: foo
|
||||||
|
# command: /bin/bash -c "ls -lah"
|
||||||
|
# chdir: /root
|
||||||
|
# register: result
|
||||||
|
|
||||||
|
|
||||||
# - debug:
|
# - debug:
|
||||||
# msg: "{{ host_interfaces }}"
|
# msg: "{{ host_interfaces }}"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user