--- - name: assert | Test bareos_console_directors ansible.builtin.assert: that: - bareos_console_directors is iterable quiet: yes when: - bareos_console_directors is defined - name: assert | Test items in bareos_console_directors are set correctly ansible.builtin.assert: that: - item.name is defined - item.name is string - item.name != "" - item.address is defined - item.address is string - item.address != "" - item.password is defined - item.password is string - item.password != "" - item.description is defined - item.description is string - item.description != "" quiet: yes loop: "{{ bareos_console_directors }}" loop_control: label: "{{ item.name }}" when: - bareos_console_directors is defined - name: assert | Test item tls_enable in bareos_console_directors ansible.builtin.assert: that: - item.tls_enable is boolean quiet: yes loop: "{{ bareos_console_directors }}" loop_control: label: "{{ item.name }}" when: - item.tls_enable is defined - name: assert | Test item tls_verify_peer in bareos_console_directors ansible.builtin.assert: that: - item.tls_verify_peer is boolean quiet: yes loop: "{{ bareos_console_directors }}" loop_control: label: "{{ item.name }}" when: - item.tls_verify_peer is defined