sftp: removed service
This commit is contained in:
parent
619bd7a5d2
commit
31d7f0fd35
@ -17,7 +17,6 @@ This project was largely inspired by his own [infra](https://github.com/notthebe
|
|||||||
* Nginx webserver
|
* Nginx webserver
|
||||||
* MediaWiki farm
|
* MediaWiki farm
|
||||||
* Navidrome music server
|
* Navidrome music server
|
||||||
* SFTP (not really a service, included in sshd)
|
|
||||||
* Syncthing
|
* Syncthing
|
||||||
* Firewall (UFW)
|
* Firewall (UFW)
|
||||||
|
|
||||||
|
@ -20,9 +20,6 @@ admin_username: maestro
|
|||||||
# Username for unpriviledged user
|
# Username for unpriviledged user
|
||||||
username: dogeystamp
|
username: dogeystamp
|
||||||
|
|
||||||
# Create an SFTP read-only user (leave blank to disable)
|
|
||||||
sftp_ro_username: dogeystamp-mobile
|
|
||||||
|
|
||||||
# Git repos (could be localhost if Gitea is installed)
|
# Git repos (could be localhost if Gitea is installed)
|
||||||
dots_repo: http://localhost:3000/dogeystamp/dots.git
|
dots_repo: http://localhost:3000/dogeystamp/dots.git
|
||||||
site_repo: http://localhost:3000/dogeystamp/wb4.git
|
site_repo: http://localhost:3000/dogeystamp/wb4.git
|
||||||
@ -270,9 +267,6 @@ enable_navidrome: yes
|
|||||||
# Personal website
|
# Personal website
|
||||||
enable_website: yes
|
enable_website: yes
|
||||||
|
|
||||||
# SFTP read-only user
|
|
||||||
enable_sftpr: no
|
|
||||||
|
|
||||||
# Syncthing
|
# Syncthing
|
||||||
enable_syncthing: yes
|
enable_syncthing: yes
|
||||||
|
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
- name: Create sftp read group
|
|
||||||
group:
|
|
||||||
name: sftpr
|
|
||||||
|
|
||||||
- name: Create sftp read-only user
|
|
||||||
user:
|
|
||||||
name: "{{ sftp_ro_username }}"
|
|
||||||
groups:
|
|
||||||
- sftpr
|
|
||||||
|
|
||||||
- name: Deploy SSH key to sftp user
|
|
||||||
ansible.posix.authorized_key:
|
|
||||||
user: "{{ sftp_ro_username }}"
|
|
||||||
state: present
|
|
||||||
key: "{{ lookup('file', '~/.ssh/keys/{{ ansible_hostname }}_sftp.pub')}}"
|
|
Reference in New Issue
Block a user