fix: Don't process results if scan report is empty

!1
This commit is contained in:
2024-02-21 01:48:43 +09:30
parent c06a278ac3
commit 2b9fab6651
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
- name: Update IP Addresses
ansible.builtin.include_tasks:
file: tasks/server/ipaddress.yaml
loop: "{{ mysql_query_find_ipaddress.results }}"
loop: "{{ mysql_query_find_ipaddress.results | default([]) }}"
loop_control:
loop_var: scan_address
label: "{{ scan_address }}"