add ansible for complete cluster setup with multipass

This commit is contained in:
Bartal Læarsson
2025-02-24 22:45:11 +00:00
parent 4670946ef6
commit e0609e7d3a
14 changed files with 887 additions and 0 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