---
- name: "In_one_network: Check if 10.1.1.1 is in the provided network list"
  ansible.builtin.assert:
    that: "{{ '10.1.1.1' is ansible.utils.in_one_network networks }}"

- name: "In_one_network: Check if 192.168.3.5 is not in the provided network list"
  ansible.builtin.assert:
    that: "{{ '192.168.3.5' is not ansible.utils.in_one_network networks }}"

- name: "In_one_network: Test invalidness"
  ansible.builtin.set_fact:
    criteria_check: "{{ '172.168.2.16' is ansible.utils.in_one_network networks }}"

- name: "In_one_network: Assert invalidness"
  ansible.builtin.assert:
    that: "{{ criteria_check == false }}"
