homeserver/roles/robertdebock.bootstrap/tasks/assert.yml

24 lines
580 B
YAML
Raw Normal View History

2021-02-13 14:20:18 +01:00
---
- name: Test if bootstrap_wait_for_host is set correctly
ansible.builtin.assert:
2021-02-13 14:20:18 +01:00
that:
- bootstrap_wait_for_host is defined
- bootstrap_wait_for_host is boolean
quiet: yes
- name: Test if bootstrap_timeout is set correctly
ansible.builtin.assert:
2021-02-13 14:20:18 +01:00
that:
- bootstrap_timeout is defined
- bootstrap_timeout is number
- bootstrap_timeout >= 0
quiet: yes
- name: Test if bootstrap_become is set correctly
ansible.builtin.assert:
that:
- bootstrap_become is defined
- bootstrap_become is boolean
quiet: yes