Skip to content

Commit

Permalink
Test is a defined variable is a string.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Nov 27, 2020
1 parent c75de26 commit b8f0f57
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
assert:
that:
- httpd_servername is defined
- httpd_servername is string
quiet: yes

- name: test if httpd_port is set correctly
Expand All @@ -19,6 +20,7 @@
assert:
that:
- httpd_ssl_servername is defined
- httpd_ssl_servername is string
quiet: yes

- name: test if httpd_ssl_port is set correctly
Expand Down Expand Up @@ -50,8 +52,11 @@
assert:
that:
- item.name is defined
- item.name is string
- item.location is defined
- item.location is string
- item.backend_url is defined
- item.backend_url is string
quiet: yes
loop: "{{ httpd_locations }}"
loop_control:
Expand All @@ -71,7 +76,9 @@
assert:
that:
- item.name is defined
- item.name is string
- item.servername is defined
- item.servername is string
quiet: yes
loop: "{{ httpd_vhosts }}"
loop_control:
Expand Down

0 comments on commit b8f0f57

Please sign in to comment.