1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-11-10 06:50:35 +00:00
vagrant-easyredmine/roles/easyredmine/tasks/firewall.yml

40 lines
838 B
YAML
Raw Normal View History

2015-11-18 23:02:49 +00:00
- service: name=firewalld
state=started
2015-11-30 15:08:24 +00:00
enabled=yes
2015-11-18 23:02:49 +00:00
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
2015-11-30 15:08:24 +00:00
- 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