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