---
- name: "Ipv4_hostmask: Check if 0.0.0.255 is a hostmask"
  ansible.builtin.assert:
    that: "{{ '0.0.0.255' is ansible.utils.ipv4_hostmask }}"

- name: "Ipv4_hostmask: Test invalidness"
  ansible.builtin.set_fact:
    criteria_check1: "{{ '255.255.255.0' is ansible.utils.ipv4_hostmask }}"

- name: "Ipv4_hostmask: Assert invalidness"
  ansible.builtin.assert:
    that: "{{ criteria_check1 == false }}"

- name: "Ipv4_hostmask: Test invalidness"
  ansible.builtin.set_fact:
    criteria_check2: "{{ '10.1.1.1' is ansible.utils.ipv4_hostmask }}"

- name: "Ipv4_hostmask: Assert invalidness"
  ansible.builtin.assert:
    that: "{{ criteria_check2 == false }}"
