Allow to specify multiple ports

parent c28f0b67
...@@ -4,7 +4,7 @@ This role installs and configures an OpenSSH-Server. It uses [Mozilla's Modern C ...@@ -4,7 +4,7 @@ This role installs and configures an OpenSSH-Server. It uses [Mozilla's Modern C
## Variables ## Variables
- `sshd_port`: The port sshd should listen on. (Default: 22) - `sshd_ports`: The ports sshd should listen on. (Default: 22)
- `sshd_permit_root_login`: Allow Root-Login (Default: no) - `sshd_permit_root_login`: Allow Root-Login (Default: no)
- `sshd_allow_pubkeys`: Allow login with pubkey (Default: yes) - `sshd_allow_pubkeys`: Allow login with pubkey (Default: yes)
- `sshd_allow_passwords`: Allow login with passwords (Default: no) - `sshd_allow_passwords`: Allow login with passwords (Default: no)
......
--- ---
sshd_port: 22 sshd_ports:
- 22
sshd_permit_root_login: no sshd_permit_root_login: no
sshd_allow_pubkeys: yes sshd_allow_pubkeys: yes
sshd_allow_passwords: no sshd_allow_passwords: no
......
# MANAGED BY ANSIBLE # MANAGED BY ANSIBLE
# EVERY CHANGE WILL BE PURGED # EVERY CHANGE WILL BE PURGED
Port {{ sshd_port }} {% for item in sshd_ports %}
Port {{ item }}
{% endfor %}
#AddressFamily any #AddressFamily any
{% for item in sshd_listen_addresses %} {% for item in sshd_listen_addresses %}
ListenAddress {{ item }} ListenAddress {{ item }}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment