---
- name: Open up the Dat port
dokku_ports:
app: "{{ app }}"
mappings:
- "http:{{ dat_port }}:{{ dat_port }}"
state: present
- 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 }}"
service:
name: ufw
state: restarted