16 lines
300 B
YAML
16 lines
300 B
YAML
---
|
|
- name: Install iptables
|
|
block:
|
|
- name: Install packages
|
|
package:
|
|
name: "{{ iptables_package }}"
|
|
state: present
|
|
|
|
- name: Enable and start service
|
|
service:
|
|
name: iptables
|
|
enabled: True
|
|
state: started
|
|
become: True
|
|
become_user: root
|