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