Skip to content

Commit

Permalink
ansible: ensure iptables-persistent is installed on jenkins hosts
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanaslett committed Jun 11, 2024
1 parent 5bd9f99 commit b36d911
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions ansible/playbooks/jenkins/host/iptables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit b36d911

Please sign in to comment.