mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-08-06 16:46:54 +02:00
Update to 2021-12-01 19:13
This commit is contained in:
16
roles/iptables/tasks/install_Debian.yml
Normal file
16
roles/iptables/tasks/install_Debian.yml
Normal file
@@ -0,0 +1,16 @@
|
||||
---
|
||||
|
||||
- name: Install packages
|
||||
apt: name=iptables-persistent
|
||||
tags: firewall
|
||||
|
||||
- name: Use iptables-legacy
|
||||
alternatives:
|
||||
name: "{{ item.key }}"
|
||||
path: "{{ item.value }}"
|
||||
with_dict:
|
||||
iptables: /usr/sbin/iptables-legacy
|
||||
ip6tables: /usr/sbin/ip6tables-legacy
|
||||
when: ansible_distribution_major_version | int >= 10
|
||||
tags: firewall
|
||||
|
Reference in New Issue
Block a user