Pour tout problème contactez-nous par mail : support@froggit.fr | La FAQ :grey_question: | Rejoignez-nous sur le Chat :speech_balloon:

Skip to content
Snippets Groups Projects

Resolve "feat(ynh_config): add the posibility to change SSH Port"

Files
3
@@ -26,9 +26,27 @@
- yunohost
- smtp
- name: Configures Yunohost autoupdate
- name: Configure Yunohost autoupdate
ansible.builtin.include_tasks: autoupdate.yml
when: ynh_autoupdate.scheduled
tags:
- yunohost
- update
- name: Change SSH port
block:
- name: Get current SSH setting
ansible.builtin.command:
yunohost settings get security.ssh.port
register: _ynh_ssh_current_value
changed_when: False
- name: Set new SSH setting
ansible.builtin.command:
"yunohost settings set security.ssh.port -v {{ ynh_ssh_port }}"
when: _ynh_ssh_current_value != ynh_ssh_port
changed_when: False
when: ynh_ssh_port
tags:
- yunohost
- ssh
Loading