From 45690c243b02422b52290db25d7197e67ad9493c Mon Sep 17 00:00:00 2001 From: Robert de Bock Date: Wed, 8 Sep 2021 08:53:46 +0200 Subject: [PATCH] Assert new variable. --- tasks/assert.yml | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tasks/assert.yml b/tasks/assert.yml index e30a2c1..aeda70e 100644 --- a/tasks/assert.yml +++ b/tasks/assert.yml @@ -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: @@ -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