This repository has been archived on 2020-06-17. You can view files and clone it, but cannot push or open issues or pull requests.
homebase/deploy.d/plays/predeploy.yml

20 lines
423 B
YAML

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