add kubernetes

This commit is contained in:
Bartal Læarsson
2025-02-27 23:01:21 +00:00
parent ccdc52070b
commit d8813b2428
17 changed files with 774 additions and 1 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