20 lines
453 B
YAML
20 lines
453 B
YAML
---
|
|
- name: Open up the Dat port
|
|
dokku_ports:
|
|
app: "{{ dokku.app }}"
|
|
mappings:
|
|
- "http:{{ config.vars.dat_port }}:{{ config.vars.dat_port }}"
|
|
state: present
|
|
|
|
- name: "Allow access to {{ config.vars.dat_port }} on the firewall"
|
|
become: true
|
|
ufw:
|
|
rule: allow
|
|
port: "{{ config.vars.dat_port }}"
|
|
|
|
- name: "Reload the firewall to enable {{ config.vars.dat_port }}"
|
|
become: true
|
|
service:
|
|
name: ufw
|
|
state: restarted
|