mirror of
https://github.com/Ownercz/ssme-thesis.git
synced 2025-07-15 22:41:33 +02:00
16 lines
413 B
YAML
16 lines
413 B
YAML
- name: install firewalld
|
|
yum:
|
|
name: firewalld
|
|
state: latest
|
|
|
|
- name: Enable firewalld
|
|
service: name=firewalld state=started enabled=yes
|
|
|
|
- name: Set public as default policy
|
|
command: firewall-cmd --set-default-zone=public
|
|
|
|
- name: Allow http/https
|
|
command: firewall-cmd --zone=public --permanent --add-service=ssh
|
|
|
|
- name: Bounce firewalld
|
|
service: name=firewalld state=restarted |