1--- 2- name: "unspecified: Check if 0.0.0.0 is an unspecified IP address" 3 assert: 4 that: "{{ '0.0.0.0' is ansible.utils.unspecified }}" 5 6- name: "unspecified: Check if 0:0:0:0:0:0:0:0 is an unspecified IP address" 7 assert: 8 that: "{{ '0:0:0:0:0:0:0:0' is ansible.utils.unspecified }}" 9 10- name: "unspecified: Check if :: is an unspecified IP address" 11 assert: 12 that: "{{ '::' is ansible.utils.unspecified }}" 13 14- name: "unspecified: Test invalidness" 15 ansible.builtin.set_fact: 16 criteria_check1: "{{ '127.0.0.1' is ansible.utils.unspecified }}" 17 18- name: "unspecified: Assert invalidness" 19 assert: 20 that: "{{ criteria_check1 == false }}" 21 22- name: "unspecified: Test invalidness" 23 ansible.builtin.set_fact: 24 criteria_check2: "{{ '::1' is ansible.utils.unspecified }}" 25 26- name: "unspecified: Assert invalidness" 27 assert: 28 that: "{{ criteria_check2 == false }}" 29