diff --git a/ansible/post-deploy.yml b/ansible/post-deploy.yml index 78cf587..cef618b 100644 --- a/ansible/post-deploy.yml +++ b/ansible/post-deploy.yml @@ -50,10 +50,19 @@ shell: "dokku ps:inspect gitea | jq .[0].NetworkSettings.IPAddress" register: dokku_container_ip - - name: Symlink the authorized keys configuration + - name: Setup the SSH passthrough script vars: ssh_listen_port: "{{ ssh_listen_port }}" dokku_container_ip: "{{ dokku_container_ip }}" + template: + src: gitea.j2 + dest: /app/gitea/gitea + owner: git + group: git + mode: "+x" + become: true + + - name: Symlink the authorized keys configuration file: src: /var/lib/gitea/git/.ssh/authorized_keys dest: /home/git/.ssh/authorized_keys diff --git a/ansible/pre-deploy.yml b/ansible/pre-deploy.yml index 11d080a..deb5094 100644 --- a/ansible/pre-deploy.yml +++ b/ansible/pre-deploy.yml @@ -52,15 +52,6 @@ - /var/lib/gitea become: true - - name: Setup the SSH passthrough script - template: - src: gitea.j2 - dest: /app/gitea/gitea - owner: git - group: git - mode: "+x" - become: true - - name: Get uid/guid of the git user getent: database: passwd