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 f780e97 commit c2ac1af
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
assert:
that:
- item.line is defined
- item.line is string
quiet: yes
loop: "{{ clamav_configuration }}"
loop_control:
Expand All @@ -28,6 +29,7 @@
- name: test if item.state in clamav_configuration is set correctly
assert:
that:
- item.state is string
- item.state in [ "absent", "present" ]
quiet: yes
loop: "{{ clamav_configuration }}"
Expand Down

0 comments on commit c2ac1af

Please sign in to comment.