diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index fd3f382..4d8df6d 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: drone + mappings: + - "http:80:{{ drone_port }}" + state: present + - name: Setup LE certificates shell: dokku letsencrypt drone args: diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 2b577a6..4bcebc2 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -43,10 +43,3 @@ DRONE_SERVER_HOST: "{{ domain }}" DRONE_SERVER_PROTO: "https" DRONE_SERVER_PORT: "{{ drone_port }}" - - - name: Set HTTP 80 port proxy - dokku_ports: - app: drone - mappings: - - "http:80:{{ drone_port }}" - state: present