add kubernetes provisioning

This commit is contained in:
Bartal Læarsson
2025-02-28 10:03:48 +00:00
parent d8813b2428
commit 211ebef466
10 changed files with 23 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