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

Commit fa4bc6b

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

File tree

9 files changed

+9
-8
lines changed

9 files changed

+9
-8
lines changed

tasks/hardening.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
mode: '0600'
3838
owner: '{{ ssh_owner }}'
3939
group: '{{ ssh_group }}'
40-
validate: '/usr/sbin/sshd -T -C user=root -C host=localhost -C addr=localhost -C lport=22 -f %s'
40+
validate: '{{ sshd_path }} -T -C user=root -C host=localhost -C addr=localhost -C lport=22 -f %s'
4141
notify: restart sshd
4242
when: ssh_server_hardening | bool
4343

vars/Archlinux.yml

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

vars/Debian.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
sshd_path: /usr/sbin/sshd
22
sshd_service_name: ssh
33
ssh_owner: root
44
ssh_group: root

vars/Fedora.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
sshd_path: /usr/sbin/sshd
22
sshd_service_name: sshd
33
ssh_owner: root
44
ssh_group: root

vars/FreeBSD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
sshd_path: /usr/sbin/sshd
22
sshd_service_name: sshd
33
ssh_owner: root
44
ssh_group: wheel

vars/OpenBSD.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
sshd_path: /usr/sbin/sshd
22
sshd_service_name: sshd
33
ssh_owner: root
44
ssh_group: wheel

vars/Oracle Linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
sshd_path: /usr/sbin/sshd
22
sshd_service_name: sshd
33
ssh_owner: root
44
ssh_group: root

vars/RedHat.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
sshd_path: /usr/sbin/sshd
22
sshd_service_name: sshd
33
ssh_owner: root
44
ssh_group: root

vars/RedHat_8.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
---
1+
sshd_path: /usr/sbin/sshd
22
sshd_service_name: sshd
33
ssh_owner: root
44
ssh_group: root

0 commit comments

Comments
 (0)