Ansible roles
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

16 lines
348 B

---
- 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