Files
casa/ansible_bck/roles/myInfra.ssh/tasks/main.yml
Márcio Fernandes f4344a8210
All checks were successful
deploy host / Deploy (push) Successful in 8s
.
2024-09-05 23:40:08 +01:00

31 lines
634 B
YAML

---
- 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