Skip to content

Commit

Permalink
Assert new variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
robertdebock committed Sep 8, 2021
1 parent ecca178 commit 45690c2
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions tasks/assert.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,6 @@
label: "{{ item.option }}"
when:
- fail2ban_configuration is defined
- fail2ban_configuration is iterable

- name: test if fail2ban_jail_configuration is set correctly
ansible.builtin.assert:
Expand All @@ -106,4 +105,11 @@
label: "{{ item.option }}"
when:
- fail2ban_jail_configuration is defined
- fail2ban_jail_configuration is iterable

- name: test if item in fail2ban_filterd_path is set correctly
ansible.builtin.assert:
that:
- fail2ban_filterd_path is string
quiet: yes
when:
- fail2ban_filterd_path is defined

0 comments on commit 45690c2

Please sign in to comment.