---
- name: Network_in_usable filter test1
  ansible.builtin.set_fact:
    result1: "{{ '192.168.0.0/24' | ansible.utils.network_in_usable('192.168.0.1') }}"

- name: Assert result for network_in_usable.
  ansible.builtin.assert:
    that: "{{ result1 == true }}"

- name: Network_in_usable filter test2
  ansible.builtin.set_fact:
    result1: "{{ '192.168.0.0/24' | ansible.utils.network_in_usable('192.168.0.255') }}"

- name: Assert result for network_in_usable
  ansible.builtin.assert:
    that: "{{ result1 == False }}"

- name: Network_in_usable filter test3
  ansible.builtin.set_fact:
    result1: "{{ '192.168.0.0/16' | ansible.utils.network_in_usable('192.168.0.255') }}"

- name: Assert result for network_in_usable
  ansible.builtin.assert:
    that: "{{ result1 == true }}"
