Changing filter pattern on setup module call

check-rsyslog validation demonstrated a novel syntax error
caused by form of the "filter" argument of the setup ansible module.

Modification of the argument form was made to align with module requirements.
The validation was added in catalogue tests.

Resolves: rhbz#2116304

Signed-off-by: Jiri Podivin <jpodivin@redhat.com>
Change-Id: I15c56f71da5d7358e0a13d16bcd975d65b36c7b0
(cherry picked from commit 5c34b1c52b)
This commit is contained in:
Jiri Podivin
2022-08-08 10:16:51 +02:00
parent e1c10f8963
commit c67f930890
2 changed files with 2 additions and 2 deletions

View File

@@ -77,6 +77,7 @@ validation_catalogue:
- check-ftype
- check-network-gateway
- check-ram
- check-rsyslog
- check-selinux-mode
- container-status
- controller-token

View File

@@ -1,8 +1,7 @@
---
- name: Gather facts
setup:
filter:
- ansible_os_family
filter: "ansible_os_family"
- include_tasks: yum.yaml
when: (ansible_os_family == 'RedHat') or
(ansible_os_family == 'CentOS')