mirror of
https://git.lapiole.org/dani/ansible-roles.git
synced 2025-04-26 15:13:20 +02:00
17 lines
348 B
YAML
17 lines
348 B
YAML
![]() |
---
|
||
|
|
||
|
- 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
|
||
|
|