Add var for ssh config file path (openSUSE Tumbleweed)
This commit is contained in:
parent
c366ef7dc0
commit
246953ec24
|
@ -48,6 +48,9 @@
|
|||
opensuse: openssh
|
||||
voidlinux: openssh
|
||||
|
||||
ssh_config_filename:
|
||||
opensuse-tumbleweed: /etc/ssh/sshd_config.d/permitrootlogin.conf
|
||||
|
||||
ssh_service_name:
|
||||
devuan: ssh
|
||||
|
||||
|
@ -140,9 +143,10 @@
|
|||
|
||||
- name: "Set «PermitRootLogin» to «yes»"
|
||||
lineinfile:
|
||||
dest: /etc/ssh/sshd_config
|
||||
dest: "{{ ssh_config_filename[os_d + '-' + os_r|string]|default('/etc/ssh/sshd_config') }}"
|
||||
regexp: '^#? *PermitRootLogin'
|
||||
line: "PermitRootLogin yes"
|
||||
create: yes
|
||||
backup: yes
|
||||
notify: "Restart SSH"
|
||||
|
||||
|
|
Loading…
Reference in a new issue