Skip to content
This repository was archived by the owner on Dec 26, 2020. It is now read-only.

Commit 1f1c715

Browse files
committed
add var sshd_path, for OSs with alternate sshd locations
Signed-off-by: Alex Waite <alex@waite.eu>
1 parent 6fddedc commit 1f1c715

File tree

9 files changed

+10
-1
lines changed

9 files changed

+10
-1
lines changed

tasks/hardening.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@
5050
mode: '0600'
5151
owner: '{{ ssh_owner }}'
5252
group: '{{ ssh_group }}'
53-
validate: '/usr/sbin/sshd -T -C user=root -C host=localhost -C addr=localhost -C lport=22 -f %s'
53+
validate: '{{ sshd_path }} -T -C user=root -C host=localhost -C addr=localhost -C lport=22 -f %s'
5454
notify: restart sshd
5555
when: ssh_server_hardening | bool
5656

vars/Archlinux.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
---
2+
sshd_path: /usr/sbin/sshd
13
sshd_service_name: sshd
24
ssh_owner: root
35
ssh_group: root

vars/Debian.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
sshd_path: /usr/sbin/sshd
23
sshd_service_name: ssh
34
ssh_owner: root
45
ssh_group: root

vars/Fedora.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
sshd_path: /usr/sbin/sshd
23
sshd_service_name: sshd
34
ssh_owner: root
45
ssh_group: root

vars/FreeBSD.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
sshd_path: /usr/sbin/sshd
23
sshd_service_name: sshd
34
ssh_owner: root
45
ssh_group: wheel

vars/OpenBSD.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
sshd_path: /usr/sbin/sshd
23
sshd_service_name: sshd
34
ssh_owner: root
45
ssh_group: wheel

vars/Oracle Linux.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
sshd_path: /usr/sbin/sshd
23
sshd_service_name: sshd
34
ssh_owner: root
45
ssh_group: root

vars/RedHat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
sshd_path: /usr/sbin/sshd
23
sshd_service_name: sshd
34
ssh_owner: root
45
ssh_group: root

vars/RedHat_8.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
sshd_path: /usr/sbin/sshd
23
sshd_service_name: sshd
34
ssh_owner: root
45
ssh_group: root

0 commit comments

Comments
 (0)