ansible roles

This commit is contained in:
2024-08-31 23:55:11 +01:00
parent b3d9bdfbe3
commit 54fc671afb
17 changed files with 258 additions and 89 deletions

View File

@@ -1,6 +1,12 @@
---
- import_tasks: services.ssh.yml
- name: docker - music volume
community.docker.docker_volume:
name: music
driver: local
driver_options:
type: none
device: /mnt/media@sshfs:nas.lan/music
o: bind

View File

@@ -1,26 +0,0 @@
---
- name: SSH - Install/Update Latest
become: true
ansible.builtin.package:
name:
- openssh-server
state: latest
notify:
- SSH - Restart Service
- name: SSH - Setup & Config
copy:
dest: /etc/ssh/sshd_config.d/10-myLimbo.conf
content: |
###################################################################
# maintained by myInfra.dev.homesrv01 ansible role
# https://git.limbosolutions.com/marcio.fernandes/homesrv01.dev.lan
####################################################################
PermitRootLogin no
PasswordAuthentication no
notify:
- SSH - Restart Service