Fix SUSE without config file
This commit is contained in:
parent
8080de211a
commit
5f1aa6882d
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
- name: "Set «PermitRootLogin» to «without-password»"
|
- name: "Set «PermitRootLogin» to «without-password»"
|
||||||
lineinfile:
|
lineinfile:
|
||||||
dest: /etc/ssh/sshd_config
|
dest: '{{ sshd_config_path | default("/etc/ssh/sshd_config") }}'
|
||||||
regexp: '^#? *PermitRootLogin'
|
regexp: '^#? *PermitRootLogin'
|
||||||
line: "PermitRootLogin without-password"
|
line: "PermitRootLogin without-password"
|
||||||
backup: yes
|
backup: yes
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
redhat.yml
|
|
|
@ -1,3 +0,0 @@
|
||||||
---
|
|
||||||
ssh_service_name: sshd
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
redhat.yml
|
|
Loading…
Reference in a new issue