fix: Remove duplicate rules
This commit is contained in:
parent
2bfaf07125
commit
128fe14959
@ -3,7 +3,7 @@
|
||||
|
||||
- name: Construire la liste des règles
|
||||
ansible.builtin.set_fact:
|
||||
nftables_rules: "{{ nftables_rules + specific }}"
|
||||
nftables_rules: "{{ (nftables_rules + specific) | unique }}"
|
||||
when: specific | length > 0
|
||||
loop: "{{ lookup('ansible.builtin.varnames', '^nftables_rules_.+', wantlist=True) }}"
|
||||
vars:
|
||||
@ -11,7 +11,7 @@
|
||||
|
||||
- name: Construire la liste des tables
|
||||
ansible.builtin.set_fact:
|
||||
nftables_tables: "{{ nftables_tables + specific }}"
|
||||
nftables_tables: "{{ (nftables_tables + specific) | unique }}"
|
||||
when: specific | length > 0
|
||||
loop: "{{ lookup('ansible.builtin.varnames', '^nftables_tables_.+', wantlist=True) }}"
|
||||
vars:
|
||||
|
Loading…
Reference in New Issue
Block a user