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
387 B
YAML
Raw Normal View History

2020-04-14 10:29:18 +00:00
---
- name: Open up the Dat port
dokku_ports:
app: "{{ app }}"
mappings:
- "http:{{ dat_port }}:{{ dat_port }}"
2020-04-14 10:30:25 +00:00
state: present
2020-04-14 10:29:18 +00:00
- 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