that was so silly + restart sshd after disablepasswd

This commit is contained in:
kevinnlsamuel committed 2026-10-23 23:04:19 +05:30
1 parent 36cbf9861f
commit 161ce95e7e
2 files changed
+6 -1

No files matched your search

+1
View File
@@ -12,6 +12,7 @@
include_role: include_role:
name: kevinnlsamuel.galaxy.sshd.disablepasswd name: kevinnlsamuel.galaxy.sshd.disablepasswd
- name: change ssh port - name: change ssh port
when: false
template: template:
src: sshd/00-altport.conf src: sshd/00-altport.conf
dest: /etc/ssh/ssh_config.d/00-altport.conf dest: /etc/ssh/ssh_config.d/00-altport.conf
+5 -1
View File
@@ -1,4 +1,8 @@
- name: disable password auth - name: disable password auth
copy: copy:
src: 00-nopasswd.conf src: 00-nopasswd.conf
dest: /etc/ssh/ssh_config.d/00-nopasswd.conf dest: /etc/ssh/sshd_config.d/00-nopasswd.conf
- name: restart sshd
service:
name: sshd
state: restarted