1
0
mirror of https://github.com/krislamo/vagrant-easyredmine synced 2024-12-16 15:30:34 +00:00
vagrant-easyredmine/roles/easyredmine/tasks/firewall.yml
2015-11-30 10:08:24 -05:00

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