From da6b4a1c026704951b4820784132c436b5e9fec5 Mon Sep 17 00:00:00 2001 From: Luke Murphy Date: Mon, 6 Apr 2020 13:10:45 +0200 Subject: [PATCH] Drop back to usual order for ports setting --- ansible/post-deploy.yml | 14 ++++++++++++++ ansible/pre-deploy.yml | 14 -------------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 7ca6cdb..362e975 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -8,6 +8,13 @@ extensions: - yml + - name: Set HTTP 80 port proxy + dokku_ports: + app: autonomic.zone + mappings: + - "http:80:{{ http_port }}" + state: present + - name: Setup LE certificates shell: dokku letsencrypt autonomic.zone args: @@ -31,3 +38,10 @@ mappings: - "https:443:{{ http_port }}" state: present + + - name: Remove automatically configured ports + dokku_ports: + app: autonomic.zone + mappings: + - "http:4000:4000" + state: absent diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 73eda20..dd85a57 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -42,20 +42,6 @@ - autonomic.zone.dokku.autonomic.zone state: absent - - name: Set HTTP 80 port proxy - dokku_ports: - app: autonomic.zone - mappings: - - "http:80:{{ http_port }}" - state: present - - - name: Remove automatically configured ports - dokku_ports: - app: autonomic.zone - mappings: - - "http:4000:4000" - state: absent - - name: Configure the dokku app environment dokku_config: app: autonomic.zone