2026-06-18 12:03:44 +02:00
|
|
|
---
|
2026-06-19 22:29:45 +02:00
|
|
|
- name: Reload nftables
|
|
|
|
|
ansible.builtin.service:
|
|
|
|
|
name: nftables
|
|
|
|
|
state: reloaded
|
|
|
|
|
listen: "integration_test | reload nftables"
|
|
|
|
|
register: _nft_reload
|
|
|
|
|
# nftables is absent from the Molecule Docker container; ignore "not found" errors there.
|
|
|
|
|
# On real hosts where base has applied nftables, failures propagate normally.
|
|
|
|
|
failed_when:
|
|
|
|
|
- _nft_reload.failed
|
|
|
|
|
- >-
|
|
|
|
|
'Could not find the requested service nftables' not in (_nft_reload.msg | default(''))
|
|
|
|
|
and 'nftables.service not found' not in (_nft_reload.msg | default(''))
|
|
|
|
|
and 'Unit nftables.service not found' not in (_nft_reload.msg | default(''))
|