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

28 lines
608 B
YAML
Raw Normal View History

2020-04-14 10:29:18 +00:00
---
- name: Open up the Dat port
dokku_ports:
2020-04-14 11:46:17 +00:00
app: "{{ dokku.app }}"
2020-04-14 10:29:18 +00:00
mappings:
2020-04-14 11:46:17 +00:00
- "http:{{ config.vars.dat_port }}:{{ config.vars.dat_port }}"
2020-04-14 10:30:25 +00:00
state: present
2020-04-14 10:29:18 +00:00
2020-04-14 11:46:17 +00:00
- name: "Allow access to {{ config.vars.dat_port }} on the firewall"
2020-04-14 10:29:18 +00:00
become: true
ufw:
rule: allow
2020-04-14 11:46:17 +00:00
port: "{{ config.vars.dat_port }}"
2020-04-14 10:29:18 +00:00
2020-04-14 11:46:17 +00:00
- name: "Reload the firewall to enable {{ config.vars.dat_port }}"
2020-04-14 10:29:18 +00:00
become: true
service:
name: ufw
state: restarted
2020-04-15 14:58:12 +00:00
- name: Create homebase application directories
become: true
file:
path: /var/lib/homebase
state: directory
owner: dokku
group: dokku