From 06d38e3b28be58e31e710fa15ee706c332fd3ec2 Mon Sep 17 00:00:00 2001
From: Baptiste DE RENZO <baptiste.derenzo@ubicast.eu>
Date: Thu, 1 Dec 2022 07:09:23 +0000
Subject: [PATCH] Remove default nfables package, Refs #37090

---
 roles/ferm-install/tasks/main.yml | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/roles/ferm-install/tasks/main.yml b/roles/ferm-install/tasks/main.yml
index 30983923..a00a914f 100644
--- a/roles/ferm-install/tasks/main.yml
+++ b/roles/ferm-install/tasks/main.yml
@@ -8,6 +8,16 @@
   retries: 60
   until: apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)
 
+- name: remove default nftables package
+  ansible.builtin.apt:
+    state: absent
+    purge: true
+    autoremove: true
+    name: nftables
+  register: apt_status
+  retries: 60
+  until: apt_status is success or ('Failed to lock apt for exclusive operation' not in apt_status.msg and '/var/lib/dpkg/lock' not in apt_status.msg)
+
 - name: use iptables-legacy
   ansible.builtin.shell: |
     update-alternatives --set iptables /usr/sbin/iptables-legacy
-- 
GitLab