From 128fe14959ce37e6ea245812f1486344c39a21ee Mon Sep 17 00:00:00 2001 From: "pulsar89.5" Date: Mon, 6 May 2024 22:49:54 +0200 Subject: [PATCH] fix: Remove duplicate rules --- tasks/configuration.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tasks/configuration.yml b/tasks/configuration.yml index 7f2e6fa..5fc689a 100644 --- a/tasks/configuration.yml +++ b/tasks/configuration.yml @@ -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: