Adjust test to differences between CentOS and Debian

This commit is contained in:
Paweł Krawczyk 2021-08-08 21:40:13 +01:00
parent d73b5bbc8f
commit a0fd38056a
No known key found for this signature in database
GPG Key ID: 32AF1F39C4EE03F2
1 changed files with 6 additions and 2 deletions

View File

@ -16,8 +16,12 @@
- name: check rules
assert:
that:
- '"type filter hook input priority 0; policy drop;" in nft.stdout'
- '"type filter hook output priority 0; policy drop;" in nft.stdout'
# The whole line is:
# type filter hook input priority 0; policy drop;
# However on CentOS will return "priority 0", while Debian will
# show "priority filter"
- '"type filter hook input" in nft.stdout'
- '"type filter hook output" in nft.stdout'
- name: service status - active
command: systemctl is-active nftables.service