roles/common: Remove ufw from Ubuntu systems
We never used this simple firewall utility and in at least one case a user on the server tried to use it and messed up the rules I had set via firewalld.
This commit is contained in:
parent
7288a85e72
commit
29bbc14068
@ -13,6 +13,10 @@
|
|||||||
when: ansible_distribution_version is version('16.04', '>=')
|
when: ansible_distribution_version is version('16.04', '>=')
|
||||||
apt: pkg={{ ubuntu_firewall_packages }} state=present
|
apt: pkg={{ ubuntu_firewall_packages }} state=present
|
||||||
|
|
||||||
|
- name: Remove ufw
|
||||||
|
when: ansible_distribution_version is version('16.04', '>=')
|
||||||
|
apt: pkg=ufw state=absent
|
||||||
|
|
||||||
- name: Copy firewalld public zone file
|
- name: Copy firewalld public zone file
|
||||||
when: ansible_distribution_version is version('16.04', '>=')
|
when: ansible_distribution_version is version('16.04', '>=')
|
||||||
template: src=public.xml.j2 dest=/etc/firewalld/zones/public.xml owner=root mode=0600
|
template: src=public.xml.j2 dest=/etc/firewalld/zones/public.xml owner=root mode=0600
|
||||||
|
Loading…
Reference in New Issue
Block a user