ansible-collection-kit/roles/sshd
Daniele Tricoli ad4a655b56 Rename the ssh server service
This is the common name used also in Ubuntu.
2026-05-06 09:12:01 +02:00
..
defaults Add variables for sshd_allow_tcp_forwarding and sshd_max_sessions 2021-06-01 17:09:27 +02:00
handlers Rename the ssh server service 2026-05-06 09:12:01 +02:00
molecule/default Rename the ssh server service 2026-05-06 09:12:01 +02:00
tasks Rename the ssh server service 2026-05-06 09:12:01 +02:00
README.md Update sshd role README 2021-06-01 17:32:35 +02:00

sshd

Installs and configures openssh server.

Role variables

  • sshd_become - Default: true. Enable/disable the Ansible become functionality.
  • sshd_become_user - Default: root. When using become functionality for privilege escalation, this is the user with desired privileges you become.
  • sshd_port - Default: 22. The port openssh server listen to.
  • sshd_allow_tcp_forwarding - Default: "no".
  • sshd_max_sessions - Default: 2.

Example playbook

- hosts: my-server
  vars:
    sshd_port: 1234
  roles:
    - eriol.kit.sshd