xoxys.iptables/tasks/install.yml

16 lines
300 B
YAML
Raw Normal View History

2017-05-17 22:54:43 +00:00
---
2018-07-06 21:18:11 +00:00
- name: Install iptables
block:
2019-01-12 13:29:51 +00:00
- name: Install packages
package:
name: "{{ iptables_package }}"
2019-01-12 13:47:03 +00:00
state: present
2018-07-01 15:17:51 +00:00
2019-01-12 13:29:51 +00:00
- name: Enable and start service
service:
name: iptables
enabled: True
state: started
2018-07-06 21:18:11 +00:00
become: True
2019-01-12 13:29:51 +00:00
become_user: root