Add custom play
This commit is contained in:
parent
a7d5c6861b
commit
4fd6522e7a
19
deploy.d/plays/predeploy.yml
Normal file
19
deploy.d/plays/predeploy.yml
Normal file
@ -0,0 +1,19 @@
|
||||
---
|
||||
- name: Open up the Dat port
|
||||
dokku_ports:
|
||||
app: "{{ app }}"
|
||||
mappings:
|
||||
- "http:{{ dat_port }}:{{ dat_port }}"
|
||||
state: absent
|
||||
|
||||
- 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
|
Reference in New Issue
Block a user