Run template after we get the vars
This commit is contained in:
parent
0cc68fea6d
commit
153629500a
@ -50,10 +50,19 @@
|
|||||||
shell: "dokku ps:inspect gitea | jq .[0].NetworkSettings.IPAddress"
|
shell: "dokku ps:inspect gitea | jq .[0].NetworkSettings.IPAddress"
|
||||||
register: dokku_container_ip
|
register: dokku_container_ip
|
||||||
|
|
||||||
- name: Symlink the authorized keys configuration
|
- name: Setup the SSH passthrough script
|
||||||
vars:
|
vars:
|
||||||
ssh_listen_port: "{{ ssh_listen_port }}"
|
ssh_listen_port: "{{ ssh_listen_port }}"
|
||||||
dokku_container_ip: "{{ dokku_container_ip }}"
|
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:
|
file:
|
||||||
src: /var/lib/gitea/git/.ssh/authorized_keys
|
src: /var/lib/gitea/git/.ssh/authorized_keys
|
||||||
dest: /home/git/.ssh/authorized_keys
|
dest: /home/git/.ssh/authorized_keys
|
||||||
|
@ -52,15 +52,6 @@
|
|||||||
- /var/lib/gitea
|
- /var/lib/gitea
|
||||||
become: true
|
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
|
- name: Get uid/guid of the git user
|
||||||
getent:
|
getent:
|
||||||
database: passwd
|
database: passwd
|
||||||
|
Reference in New Issue
Block a user