feat ansible ssh configuration

This commit is contained in:
marcio.fernandes committed 2024-08-31 21:21:26 +01:00
1 parent 44ebbbf28a
commit b3d9bdfbe3
9 files changed
+96 -21

No files matched your search

@@ -0,0 +1,6 @@
---
- import_tasks: services.ssh.yml
@@ -0,0 +1,26 @@
---
- 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