Skip to content
Snippets Groups Projects
Verified Commit 2cc96ab7 authored by David Mehren's avatar David Mehren
Browse files

Allow to specify multiple ports

parent c28f0b67
No related branches found
No related tags found
No related merge requests found
...@@ -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 }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment