Skip to content

playbook: sshd service is ssh for ubuntu 24

Joanne Hugé requested to merge ubuntu-24 into master

Distributions have different names for openssh-server systemd service:

  • In Ubuntu < 24 and Debian: ssh and sshd are valid
  • In Ubuntu 24: only ssh is valid
  • In Fedora: only sshd is valid

This commits uses sshd if distribution is Fedora, else ssh

I couldn't find any better way to do this than having two handlers, let me know if someone has a better idea.

/cc @tomo @luke

Merge request reports