enables ssh to gitea
ben/infra/pipeline/head This commit looks good Details

pull/47/head
Ben Kristinsson 3 months ago
parent 734e9c45e3
commit 6de13be2f8

1
.gitignore vendored

@ -95,3 +95,4 @@ playbooks/
/vaultwarden.yml
/mirrors.yml
/lb.yml
/gitea-proxy.yml

@ -24,7 +24,7 @@ echo " roles:" >> private/playbooks/$1.yml
echo " - $1" >> private/playbooks/$1.yml
ln -s private/playbooks/$1.yml .
echo "/${1}.yml\n" >> .gitignore
echo "/${1}.yml" >> .gitignore
(
cd private/

@ -14,17 +14,7 @@
# - reload ssh
- restart ssh
- name: cleanup
file:
path: "{{ item }}"
state: absent
with_items:
- /usr/local/bin/ssh-git.sh
tags:
- sshd
- gitea
- name: copy the ssh keys used for the ssh shim (gitea manages authorized_keys)
- name: copy the ssh keys used for the ssh proxy (gitea manages authorized_keys)
copy:
src: "private/gitea/{{ item.name }}"
dest: "{{ gitea_user.home }}/.ssh/{{ item.name }}"
@ -41,7 +31,7 @@
- sshd
- gitea
- name: template scripts for ssh shim
- name: template scripts for ssh proxy to gitea
template:
src: "{{ item.name }}.j2"
dest: "/usr/local/bin/{{ item.name }}"

@ -0,0 +1,3 @@
---
- import_tasks: gitea-proxy.yml
tags: gitea-proxy

@ -2,4 +2,5 @@
dependencies:
- sshd
- gitea-proxy
- haproxy

@ -1,3 +0,0 @@
---
- import_tasks: lb.yml
tags: lb
Loading…
Cancel
Save