azdaz
This commit is contained in:
18
scan.yml
18
scan.yml
@@ -117,19 +117,19 @@
|
||||
|
||||
- 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"
|
||||
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
|
||||
loop: "{{ cert.results }}"
|
||||
loop_control:
|
||||
index_var: my_idx
|
||||
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') }}"
|
||||
#create: yes
|
||||
line: "IP,CN,ISSUER,REVERSE"
|
||||
insertbefore: BOF
|
||||
loop: "{{ cert.results }}"
|
||||
loop_control:
|
||||
index_var: my_idx
|
||||
delegate_to: localhost
|
||||
when: item.invocation is defined
|
||||
|
||||
@@ -163,6 +163,14 @@
|
||||
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:
|
||||
# msg: "{{ host_interfaces }}"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user