diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 4caf33a..fd3f382 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -8,13 +8,6 @@ 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: @@ -31,16 +24,16 @@ mounts: - "/home/dokku/drone/letsencrypt/certs:/etc/ssl/certs/" - - name: Remove automatically configured ports - dokku_ports: - app: gitea - mappings: - - "http:{{ drone_port }}:{{ drone_port }}" - state: absent - - name: Set HTTP 443 port dokku_ports: app: drone mappings: - "https:443:{{ drone_port }}" state: present + + - name: Remove automatically configured ports + dokku_ports: + app: gitea + mappings: + - "http:{{ drone_port }}:{{ drone_port }}" + state: absent diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 4bcebc2..2b577a6 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -43,3 +43,10 @@ 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