initial commit

This commit is contained in:
Bartal Læarsson
2025-02-27 21:41:38 +00:00
parent da3f780fd2
commit ccdc52070b
27 changed files with 27 additions and 4 deletions
+18
View File
@@ -0,0 +1,18 @@
---
# tasks/ssh.yml
- name: Enable password authentication in sshd_config
replace:
path: /etc/ssh/sshd_config
regexp: '#PasswordAuthentication'
replace: 'PasswordAuthentication'
- name: Enable KbdInteractiveAuthentication in sshd_config
replace:
path: /etc/ssh/sshd_config
regexp: 'KbdInteractiveAuthentication no'
replace: 'KbdInteractiveAuthentication yes'
- name: Restart SSH service
systemd:
name: ssh
state: restarted