Allow SSH connections to Gitea
All checks were successful
Homelab IaC GitOps Pipeline / lint (push) Successful in 14s

This commit is contained in:
Sho Ishida 2026-07-20 10:26:37 +00:00
parent b5f3315c21
commit d4e799d636
3 changed files with 3 additions and 1 deletions

View File

@ -27,4 +27,5 @@ jobs:
run: | run: |
cd ansible cd ansible
echo "dummy" > .vault_pass echo "dummy" > .vault_pass
ansible-galaxy collection install ansible.posix
ansible-lint playbooks/*.yml ansible-lint playbooks/*.yml

View File

@ -15,6 +15,7 @@ HTTP_PORT = 3000
ROOT_URL = http://172.30.1.80:3000/ ROOT_URL = http://172.30.1.80:3000/
DISABLE_SSH = false DISABLE_SSH = false
SSH_PORT = 2222 SSH_PORT = 2222
START_SSH_SERVER = true
LFS_START_SERVER = true LFS_START_SERVER = true
[security] [security]

View File

@ -11,7 +11,7 @@ WorkingDirectory=/home/{{ admin_user }}/containers/gitea
ExecStartPre=-/usr/bin/podman rm -f gitea ExecStartPre=-/usr/bin/podman rm -f gitea
ExecStart=/usr/bin/podman run --name gitea --rm \ ExecStart=/usr/bin/podman run --name gitea --rm \
-p 3000:3000 \ -p 3000:3000 \
-p 2222:22 \ -p 2222:2222 \
-v /home/{{ admin_user }}/containers/gitea/data:/var/lib/gitea:z,U \ -v /home/{{ admin_user }}/containers/gitea/data:/var/lib/gitea:z,U \
-v /home/{{ admin_user }}/containers/gitea/config:/etc/gitea:z,U \ -v /home/{{ admin_user }}/containers/gitea/config:/etc/gitea:z,U \
-e GITEA__security__INSTALL_LOCK=true \ -e GITEA__security__INSTALL_LOCK=true \