Add custom play

This commit is contained in:
Luke Murphy 2020-04-14 12:29:18 +02:00
parent a7d5c6861b
commit 4fd6522e7a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
1 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,19 @@
---
- name: Open up the Dat port
dokku_ports:
app: "{{ app }}"
mappings:
- "http:{{ dat_port }}:{{ dat_port }}"
state: absent
- name: "Allow access to {{ dat_port }} on the firewall"
become: true
ufw:
rule: allow
port: "{{ dat_port }}"
- name: "Reload the firewall to enable {{ dat_port }}"
become: true
service:
name: ufw
state: restarted