ansible/roles/www/tasks/mediawiki.yaml
2023-09-10 14:11:21 +02:00

21 lines
423 B
YAML

---
- 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