draft: r/gitea: use sshd_config.d

step-ssh
Dustin 2023-09-30 15:22:16 -05:00
parent c40d69803e
commit 6797f1506a
4 changed files with 19 additions and 1 deletions

View File

@ -3,7 +3,6 @@
- apache
- role: gitea
tags: gitea
- sshd
tasks:
- name: ensure apache is running
service:

View File

@ -0,0 +1,3 @@
Match User gitea
PasswordAuthentication no
PermitTTY no

View File

@ -9,3 +9,7 @@
service:
name=gitea
state=restarted
- name: reload sshd
service:
name: sshd
state: reloaded

View File

@ -84,3 +84,15 @@
name=httpd_can_network_connect
persistent=yes
state=yes
- name: ensure sshd is configured for gitea
copy:
src: gitea.sshd_config
dest: /etc/ssh/sshd_config.d/80-gitea.conf
mode: u=rw,go=r
owner: root
group: root
notify:
- reload sshd
tags:
- sshd-config