From b36d9117c25eb6ede1af8dc9a0e68a0e88e8af99 Mon Sep 17 00:00:00 2001 From: Ryan Aslett Date: Tue, 11 Jun 2024 07:46:01 -0700 Subject: [PATCH] ansible: ensure iptables-persistent is installed on jenkins hosts --- ansible/playbooks/jenkins/host/iptables.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/ansible/playbooks/jenkins/host/iptables.yml b/ansible/playbooks/jenkins/host/iptables.yml index 433987e6c..a9ca28c9f 100644 --- a/ansible/playbooks/jenkins/host/iptables.yml +++ b/ansible/playbooks/jenkins/host/iptables.yml @@ -18,6 +18,15 @@ } tasks: + - name: Update the apt cache + apt: + update_cache: yes + + - name: Ensure iptables-persistent is installed + apt: + name: iptables-persistent + state: present + - name: add hosts to firewall when: - not 'ansible_ssh_common_args' in hostvars[host]