29 lines
964 B
YAML
29 lines
964 B
YAML
---
|
|
- name: "unspecified: Check if 0.0.0.0 is an unspecified IP address"
|
|
ansible.builtin.assert:
|
|
that: "{{ '0.0.0.0' is ansible.utils.unspecified }}"
|
|
|
|
- name: "unspecified: Check if 0:0:0:0:0:0:0:0 is an unspecified IP address"
|
|
ansible.builtin.assert:
|
|
that: "{{ '0:0:0:0:0:0:0:0' is ansible.utils.unspecified }}"
|
|
|
|
- name: "unspecified: Check if :: is an unspecified IP address"
|
|
ansible.builtin.assert:
|
|
that: "{{ '::' is ansible.utils.unspecified }}"
|
|
|
|
- name: "unspecified: Test invalidness"
|
|
ansible.builtin.set_fact:
|
|
criteria_check1: "{{ '127.0.0.1' is ansible.utils.unspecified }}"
|
|
|
|
- name: "unspecified: Assert invalidness"
|
|
ansible.builtin.assert:
|
|
that: "{{ criteria_check1 == false }}"
|
|
|
|
- name: "unspecified: Test invalidness"
|
|
ansible.builtin.set_fact:
|
|
criteria_check2: "{{ '::1' is ansible.utils.unspecified }}"
|
|
|
|
- name: "unspecified: Assert invalidness"
|
|
ansible.builtin.assert:
|
|
that: "{{ criteria_check2 == false }}"
|