mirror of
https://github.com/krislamo/vagrant-easyredmine
synced 2024-11-10 06:50:35 +00:00
40 lines
838 B
YAML
40 lines
838 B
YAML
|
|
- service: name=firewalld
|
|
state=started
|
|
enabled=yes
|
|
sudo: yes
|
|
|
|
- firewalld: service=https
|
|
permanent=true
|
|
state=enabled
|
|
sudo: yes
|
|
notify: restart firewalld
|
|
|
|
- firewalld: service=http
|
|
permanent=true
|
|
state=enabled
|
|
sudo: yes
|
|
notify: restart firewalld
|
|
|
|
- firewalld: rich_rule='rule service name="ssh" family="ipv4" source address="{{ item }}" accept'
|
|
permanent=true
|
|
state=enabled
|
|
with_items:
|
|
- 128.192.75.0/24
|
|
- 192.168.0.0/16
|
|
- 172.16.0.0/16
|
|
- 128.91.49.0/24
|
|
sudo: yes
|
|
notify: restart firewalld
|
|
|
|
- firewalld: service=ssh
|
|
permanent=true
|
|
state=disabled
|
|
sudo: yes
|
|
notify: restart firewalld
|
|
|
|
- name: restart firewalld
|
|
service: name=firewalld
|
|
state=restarted
|
|
sudo: yes
|