mirror of
https://github.com/frappe/bench.git
synced 2025-01-09 16:36:25 +00:00
[fix] setup firewall
This commit is contained in:
parent
fc3d1c78c7
commit
2fa3b213f1
@ -6,6 +6,7 @@
|
||||
# For CentOS
|
||||
- name: Enable SELinux
|
||||
selinux: policy=targeted state=permissive
|
||||
when: ansible_distribution == 'CentOS'
|
||||
|
||||
- name: Install firewalld
|
||||
yum: name=firewalld state=present
|
||||
@ -29,7 +30,10 @@
|
||||
|
||||
# For Ubuntu / Debian
|
||||
- name: Install ufw
|
||||
apt: name=ufw state=present
|
||||
apt: name={{ item }} state=present force=yes
|
||||
with_items:
|
||||
- python-selinux
|
||||
- ufw
|
||||
when: ansible_distribution == 'Ubuntu' or ansible_distribution == 'Debian'
|
||||
|
||||
- name: Enable Firewall
|
||||
|
Loading…
Reference in New Issue
Block a user