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 7b093f8 commit 0dc2153
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
assert:
that:
- logrotate_frequency is defined
- logrotate_frequency is string
- logrotate_frequency in [ "daily", "weekly", "monthly" ]
quiet: yes

Expand All @@ -26,10 +27,12 @@
assert:
that:
- logrotate_user is defined
- logrotate_user is string
quiet: yes

- name: test if logrotate_group is set correctly
assert:
that:
- logrotate_group is defined
- logrotate_group is string
quiet: yes

0 comments on commit 0dc2153

Please sign in to comment.