15 lines
261 B
YAML
15 lines
261 B
YAML
---
|
|
- name: Install iptables
|
|
block:
|
|
- name: Install packages
|
|
package:
|
|
name: "{{ iptables_package }}"
|
|
state: latest
|
|
|
|
- name: Enable and start service
|
|
service:
|
|
name: iptables
|
|
enabled: True
|
|
state: started
|
|
become: True
|