2014-08-16 23:35:57 +02:00
|
|
|
---
|
2015-06-07 11:42:03 +02:00
|
|
|
- name: Install firewalld and deps
|
2015-08-23 11:06:25 +02:00
|
|
|
when: ansible_distribution_major_version == '8'
|
2015-06-07 11:42:03 +02:00
|
|
|
apt: pkg={{ item }} state=latest
|
|
|
|
with_items:
|
|
|
|
- firewalld
|
|
|
|
- tidy
|
|
|
|
|
|
|
|
- name: Copy firewalld public zone file
|
2015-08-23 11:06:25 +02:00
|
|
|
when: ansible_distribution_major_version == '8'
|
2015-06-07 11:42:03 +02:00
|
|
|
template: src=public.xml.j2 dest=/etc/firewalld/zones/public.xml owner=root mode=0600
|
|
|
|
|
|
|
|
- name: Format public.xml firewalld zone file
|
2015-08-23 11:06:25 +02:00
|
|
|
when: ansible_distribution_major_version == '8'
|
2015-06-07 11:42:03 +02:00
|
|
|
shell: tidy -xml -iq -m -w 0 /etc/firewalld/zones/public.xml
|
|
|
|
notify:
|
|
|
|
- restart firewalld
|