forked from bitlair/ansible
Add www role
This commit is contained in:
parent
1bab3d478d
commit
03780abf01
12 changed files with 313 additions and 0 deletions
21
roles/www/tasks/mediawiki.yaml
Normal file
21
roles/www/tasks/mediawiki.yaml
Normal file
|
@ -0,0 +1,21 @@
|
|||
---
|
||||
- name: Install dependencies
|
||||
apt:
|
||||
name:
|
||||
- php-fpm
|
||||
|
||||
- name: Allow HTTP/HTTPS
|
||||
iptables:
|
||||
chain: INPUT
|
||||
protocol: tcp
|
||||
destination_port: "{{ item.port }}"
|
||||
ctstate: NEW
|
||||
jump: ACCEPT
|
||||
ip_version: "{{ item.ip }}"
|
||||
action: insert
|
||||
with_items:
|
||||
- { ip: ipv4, port: 80 }
|
||||
- { ip: ipv4, port: 443 }
|
||||
- { ip: ipv6, port: 80 }
|
||||
- { ip: ipv6, port: 443 }
|
||||
notify: persist iptables
|
Loading…
Add table
Add a link
Reference in a new issue