Run template after we get the vars

This commit is contained in:
Luke Murphy 2020-03-23 18:11:02 +01:00
parent 0cc68fea6d
commit 153629500a
No known key found for this signature in database
GPG Key ID: 5E2EF5A63E3718CC
2 changed files with 10 additions and 10 deletions

View File

@ -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

View File

@ -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