Skip to content
Extraits de code Groupes Projets
Valider 1e681c56 rédigé par Théo - Le Filament's avatar Théo - Le Filament
Parcourir les fichiers

feat: allow to add another sshd port

parent f93c46c8
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
...@@ -260,6 +260,8 @@ ...@@ -260,6 +260,8 @@
tags: sshd tags: sshd
- name: Copy sshd_config file - name: Copy sshd_config file
vars:
template_force_sshd_port: "{{ force_sshd_port | default(None) }}"
ansible.builtin.template: ansible.builtin.template:
src: sshd_config.j2 src: sshd_config.j2
dest: /etc/ssh/sshd_config dest: /etc/ssh/sshd_config
......
...@@ -13,6 +13,9 @@ PermitRootLogin no ...@@ -13,6 +13,9 @@ PermitRootLogin no
{% if inventory_hostname in groups.gitlab %} {% if inventory_hostname in groups.gitlab %}
Port 22 Port 22
{% endif %} {% endif %}
{% if template_force_sshd_port %}
Port {{ template_force_sshd_port }}
{% endif %}
Port {{ default_sshd_port }} Port {{ default_sshd_port }}
PrintMotd no PrintMotd no
Subsystem sftp /usr/lib/openssh/sftp-server -f AUTHPRIV -l INFO Subsystem sftp /usr/lib/openssh/sftp-server -f AUTHPRIV -l INFO
......
0% Chargement en cours ou .
You are about to add 0 people to the discussion. Proceed with caution.
Veuillez vous inscrire ou vous pour commenter