@ -28,7 +28,7 @@
|
|||||||
ansible.builtin.set_fact:
|
ansible.builtin.set_fact:
|
||||||
subnet_scan_results: |-
|
subnet_scan_results: |-
|
||||||
[
|
[
|
||||||
{% for scanned_host in ((nmap_scan.stdout | ansible.utils.from_xml) | from_yaml).nmaprun.host %}
|
{% for scanned_host in ((nmap_scan.stdout | ansible.utils.from_xml) | from_yaml).nmaprun.host | default([]) %}
|
||||||
{% if
|
{% if
|
||||||
scanned_host.address[0]['@addrtype'] | default('') == 'ipv4'
|
scanned_host.address[0]['@addrtype'] | default('') == 'ipv4'
|
||||||
or
|
or
|
||||||
|
@ -29,7 +29,7 @@
|
|||||||
- name: Update IP Addresses
|
- name: Update IP Addresses
|
||||||
ansible.builtin.include_tasks:
|
ansible.builtin.include_tasks:
|
||||||
file: tasks/server/ipaddress.yaml
|
file: tasks/server/ipaddress.yaml
|
||||||
loop: "{{ mysql_query_find_ipaddress.results }}"
|
loop: "{{ mysql_query_find_ipaddress.results | default([]) }}"
|
||||||
loop_control:
|
loop_control:
|
||||||
loop_var: scan_address
|
loop_var: scan_address
|
||||||
label: "{{ scan_address }}"
|
label: "{{ scan_address }}"
|
||||||
|
Reference in New Issue
Block a user