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