From 6f32d3562fa25cdf93aaa34e7acad0212f9781c8 Mon Sep 17 00:00:00 2001 From: Jonathan Rosser Date: Wed, 17 Jul 2024 09:25:18 +0100 Subject: [PATCH] Update ssh service name for modern debian based systems. This is now 'ssh' rather than 'sshd'. Change-Id: I210403b51c09fd4f2ec0aba22ff8810f53a820ac --- tests/bootstrap-aio.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/bootstrap-aio.yml b/tests/bootstrap-aio.yml index ae1d968aa7..b5d895d5fa 100644 --- a/tests/bootstrap-aio.yml +++ b/tests/bootstrap-aio.yml @@ -32,8 +32,12 @@ name: openssh-server state: present - name: Ensure sshd is running + vars: + _ssh_service_name: + redhat: sshd + debian: ssh service: - name: sshd + name: "{{ _ssh_service_name[ansible_facts['os_family'] | lower] }}" state: started enabled: yes post_tasks: