Closed myllynen closed 1 year ago
Hello myllynen,
I am having difficulty replicating this error.
All of my testing of previous: replaced
in check mode has failed to reproduce this (or any) error. I have attempted to purge config in check mode both with a default firewall configuration and with the following configuration active:
- zone: customzone
state: present
- set_default_zone: customzone
state: enabled
- service: [tftp, ftp]
port: ['443/tcp', '443/udp']
forward_port: ['447/tcp;;1.2.3.4',
'448/tcp;;1.2.3.5']
state: enabled
- zone: internal
service: [tftp, ftp]
port: ['443/tcp', '443/udp']
forward_port: ['447/tcp;;1.2.3.4',
'448/tcp;;1.2.3.5']
state: enabled
- masquerade: true
- service: http
state: enabled
Could you provide any instructions on how this error was initially produced?
Thank you,
Brennan Paciorek
Hello! I am experiencing this error for example using the following playbook against a freshly installed RHEL 9.2 host:
---
- hosts: all
become: true
gather_facts: false
tasks:
- name: Test firewall configuration
vars:
firewall:
- previous: replaced
- service: cockpit
zone: public
state: disabled
permanent: true
ansible.builtin.include_role:
name: rhel-system-roles.firewall
Running the playbook without --check
it completes without error.
https://github.com/linux-system-roles/firewall/pull/163
@juliaschindler are you able to test this?
When using
previous: replaced
and check mode, the playbook fails with the following error: