From 1d20c38b5b538a0d8e4b47b519ce7bb694a731b7 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Wed, 25 Mar 2020 22:23:41 +0100 Subject: [PATCH] Push port proxy into pre-deploy --- ansible/post-deploy.yml | 8 -------- ansible/pre-deploy.yml | 8 ++++++++ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 979a870..b90d5fa 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -8,14 +8,6 @@ extensions: - yml - - name: Set HTTP 80 port proxy - dokku_ports: - app: homebase - mappings: - - "http:80:{{ http_port }}" - - "http:{{ dat_port }}:{{ dat_port }}" - state: present - - name: Setup LE certificates shell: dokku letsencrypt homebase args: diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index cd15a03..c6a2896 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -45,3 +45,11 @@ owner: dokku group: dokku become: true + + - name: Set HTTP 80 port proxy + dokku_ports: + app: homebase + mappings: + - "http:80:{{ http_port }}" + - "http:{{ dat_port }}:{{ dat_port }}" + state: present