This commit is contained in:
30
ansible_bck/roles/myInfra.ssh/tasks/main.yml
Normal file
30
ansible_bck/roles/myInfra.ssh/tasks/main.yml
Normal file
@@ -0,0 +1,30 @@
|
||||
---
|
||||
- name: Install/Update openssh-server
|
||||
become: true
|
||||
ansible.builtin.package:
|
||||
name:
|
||||
- openssh-server
|
||||
state: latest
|
||||
|
||||
|
||||
- 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
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user