Fix SUSE without config file

This commit is contained in:
Sven Velt 2022-06-28 16:45:20 +02:00
parent 8080de211a
commit 5f1aa6882d
5 changed files with 1 additions and 6 deletions

View file

@ -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

View file

@ -1 +0,0 @@
redhat.yml

View file

@ -1,3 +0,0 @@
---
ssh_service_name: sshd

View file

@ -1 +0,0 @@
redhat.yml