Skip to content

Commit

Permalink
Assert new variables.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Feb 4, 2022
1 parent 932e684 commit 4fec87b
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,13 @@
- logrotate_compress is boolean
quiet: yes

- name: test if logrotate_dateext is set correctly
ansible.builtin.assert:
that:
- logrotate_dateext is defined
- logrotate_dateext is boolean
quiet: yes

- name: test if logrotate_user is set correctly
ansible.builtin.assert:
that:
Expand Down Expand Up @@ -116,6 +123,17 @@
when:
- item.missingok is defined

- name: test if nomissingok in logrotate_entries is set correctly
ansible.builtin.assert:
that:
- item.nomissingok is boolean
quiet: yes
loop: "{{ logrotate_entries }}"
loop_control:
label: "{{ item.name }}"
when:
- item.nomissingok is defined

- name: test if create_* in logrotate_entries is set correctly
ansible.builtin.assert:
that:
Expand Down

0 comments on commit 4fec87b

Please sign in to comment.