Ansible role that configures ssh and enables systemd socket activation.
This role was developed and tested on Ansible 2.2.0 and higher. It may work on lower versions but that is currently unsupported.
ssh_port: (default: 22) # The tcp port the socket will listen on
ssh_socket_bind_device: # The interface the socket will bind to
ssh_users: # Equivalent to sshd_config(5) AllowUsers
None
- hosts: all
roles:
- role: AsavarTzeth.ssh
ssh_port: 22
ssh_socket_bind_device: eth0
ssh_users: foobar1 foobar2
BSD-2-Clause
Patrik Nilsson