[stable-10] Adjust YAML files (#10233) (#10244)

Adjust YAML files (#10233)

Adjust YAML files.

(cherry picked from commit eaa5e07b28)
This commit is contained in:
Felix Fontein 2025-06-15 10:02:03 +02:00 committed by GitHub
commit a9e892952d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
244 changed files with 7272 additions and 7329 deletions

View file

@ -32,7 +32,6 @@
quiet: true
- name: "trigger error about missing param 'state'"
iptables_state:
path: foobar
@ -47,7 +46,6 @@
quiet: true
- name: "trigger error about missing param 'path'"
iptables_state:
state: saved
@ -62,7 +60,6 @@
quiet: true
- name: "trigger error about invalid value for param 'state'"
iptables_state:
path: foobar
@ -99,7 +96,6 @@
quiet: true
- name: "save state (must report a change)"
iptables_state:
path: "{{ iptables_saved }}"
@ -114,7 +110,6 @@
quiet: true
- name: "save state (idempotency, must NOT report a change)"
iptables_state:
path: "{{ iptables_saved }}"
@ -129,7 +124,6 @@
quiet: true
- name: "save state (check_mode, must NOT report a change)"
iptables_state:
path: "{{ iptables_saved }}"
@ -145,7 +139,6 @@
quiet: true
# We begin with 'state=restored' by restoring the current state on itself.
# This at least ensures the file produced with state=saved is suitable for
# state=restored.
@ -176,7 +169,6 @@
register: xtables_lock
- name: "state=restored changed=false"
block:
- name: "restore state (must NOT report a change, warning about rollback & async)"
@ -202,14 +194,12 @@
register: xtables_lock
- name: "change iptables state (iptables)"
iptables:
chain: OUTPUT
jump: ACCEPT
- name: "state=restored changed=true"
block:
- name: "restore state (check_mode, must report a change)"
@ -236,7 +226,6 @@
register: xtables_lock
- name: "state=restored changed=true"
block:
- name: "restore state (must report a change, async, no warning)"
@ -265,7 +254,6 @@
register: xtables_lock
- name: "state=restored changed=false"
block:
- name: "restore state (must NOT report a change, async, no warning)"
@ -293,7 +281,6 @@
register: xtables_lock
- name: "state=restored changed=false"
block:
- name: "restore state (check_mode=yes, must NOT report a change, no warning)"

View file

@ -28,7 +28,6 @@
quiet: true
- name: "get state (table nat)"
iptables_state:
table: nat
@ -48,7 +47,6 @@
quiet: true
- name: "save state (table filter)"
iptables_state:
path: "{{ iptables_saved }}"
@ -68,7 +66,6 @@
quiet: true
- name: "save state (table nat)"
iptables_state:
path: "{{ iptables_saved }}"
@ -89,7 +86,6 @@
quiet: true
- name: "save state (any table)"
iptables_state:
path: "{{ iptables_saved }}"
@ -109,7 +105,6 @@
quiet: true
- name: "restore state (table nat, must NOT report a change, no warning)"
iptables_state:
path: "{{ iptables_saved }}"
@ -132,7 +127,6 @@
quiet: true
- name: "change NAT table (iptables)"
iptables:
table: nat
@ -141,7 +135,6 @@
state: present
- name: "restore state (table nat, must report a change, no warning)"
iptables_state:
path: "{{ iptables_saved }}"
@ -166,7 +159,6 @@
quiet: true
- name: "get raw and mangle tables states"
iptables_state:
path: "{{ iptables_saved }}"
@ -179,7 +171,6 @@
check_mode: true
- name: "save state (any table)"
iptables_state:
path: "{{ iptables_saved }}"
@ -200,7 +191,6 @@
quiet: true
- name: "save filter table into a test file"
iptables_state:
path: "{{ iptables_tests }}"
@ -213,7 +203,6 @@
line: "# *mangle"
- name: "restore state (table filter, must NOT report a change, no warning)"
iptables_state:
path: "{{ iptables_tests }}"
@ -242,7 +231,6 @@
quiet: true
- name: "restore state (any table, must NOT report a change, no warning)"
iptables_state:
path: "{{ iptables_tests }}"
@ -270,7 +258,6 @@
quiet: true
- name: "restore state (table mangle, must fail, no warning)"
iptables_state:
path: "{{ iptables_tests }}"

View file

@ -12,7 +12,6 @@
COMMIT
- name: "restore state from the test file (check_mode, must report a change)"
iptables_state:
path: "{{ iptables_tests }}"
@ -26,7 +25,6 @@
- iptables_state is changed
- name: "fail to restore state from the test file"
block:
- name: "restore state from the test file (bad policies, expected error -> rollback)"
@ -59,7 +57,6 @@
- iptables_state is failed
- name: "fail to restore state from the test file (again)"
block:
- name: "try again, with a higher timeout (bad policies, same expected error)"
@ -94,7 +91,6 @@
- iptables_state is failed
- name: "restore state from backup (must NOT report a change)"
iptables_state:
path: "{{ iptables_saved }}"
@ -109,7 +105,6 @@
- iptables_state is not changed
- name: "restore state from backup (mangle, must NOT report a change)"
iptables_state:
path: "{{ iptables_saved }}"
@ -125,7 +120,6 @@
- iptables_state is not changed
- name: "create a blocking ruleset with a REJECT rule"
copy:
dest: "{{ iptables_tests }}"
@ -135,7 +129,6 @@
COMMIT
- name: "fail to restore state from the test file (again)"
block:
- name: "restore state from the test file (bad rules, expected error -> rollback)"
@ -168,7 +161,6 @@
- iptables_state is failed
- name: "fail to restore state from the test file (again)"
block:
- name: "try again, with a higher timeout (bad rules, same expected error)"