37 lines
854 B
YAML
37 lines
854 B
YAML
---
|
|
|
|
- name: test if ara_configuration_file is set correctly
|
|
ansible.builtin.assert:
|
|
that:
|
|
- ara_configuration_file is defined
|
|
- ara_configuration_file is string
|
|
quiet: yes
|
|
|
|
- name: test if ara_user is set correctly
|
|
ansible.builtin.assert:
|
|
that:
|
|
- ara_user is defined
|
|
- ara_user is string
|
|
quiet: yes
|
|
|
|
- name: test if ara_configuration is set correctly
|
|
ansible.builtin.assert:
|
|
that:
|
|
- ara_configuration is iterable
|
|
quiet: yes
|
|
when:
|
|
- ara_configuration is defined
|
|
|
|
- name: test if item in ara_configuration is set correctly
|
|
ansible.builtin.assert:
|
|
that:
|
|
- item.option is defined
|
|
- item.option is string
|
|
- item.value is defined
|
|
quiet: yes
|
|
loop: "{{ ara_configuration }}"
|
|
loop_control:
|
|
label: "{{ item.option }}"
|
|
when:
|
|
- ara_configuration is defined
|