that was so silly + restart sshd after disablepasswd
This commit is contained in:
2 files changed
+6
-1
No files matched your search
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
Reference in new issue
Block a user