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
Commit 0abe03ad authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT
Browse files

WIP: dictionnary for yunohost commands

parent f49a46b5
No related branches found
No related tags found
No related merge requests found
Pipeline #12100 passed with warnings
This commit is part of merge request !61. Comments created here will be created in the context of that merge request.
...@@ -68,7 +68,7 @@ A partir de Yunohost 11.1, un nouveau groupe d'administrateurs est créé sur l' ...@@ -68,7 +68,7 @@ A partir de Yunohost 11.1, un nouveau groupe d'administrateurs est créé sur l'
Par défaut, l'utilisateur doit taper son mot de passe pour utiliser la commande sudo mais il est possible de désactiver cette vérification depuis l'interface web (`outils` > `Paramètres de YunoHost` > `Permettre aux administrateurs d'utiliser 'sudo' sans retaper leur mot de passe`) ou en modifiant la variable `ynh_sudo_passwordless` à `true` dans votre fichier de variables Ansible. Plus d'informations disponibles [ici](https://forum.yunohost.org/t/yunohost-11-1-release-sortie-de-yunohost-11-1/23378#sudo-sans-mot-de-passe-16). Par défaut, l'utilisateur doit taper son mot de passe pour utiliser la commande sudo mais il est possible de désactiver cette vérification depuis l'interface web (`outils` > `Paramètres de YunoHost` > `Permettre aux administrateurs d'utiliser 'sudo' sans retaper leur mot de passe`) ou en modifiant la variable `ynh_sudo_passwordless` à `true` dans votre fichier de variables Ansible. Plus d'informations disponibles [ici](https://forum.yunohost.org/t/yunohost-11-1-release-sortie-de-yunohost-11-1/23378#sudo-sans-mot-de-passe-16).
```yml ```yml
ynh_sudo_passwordless: false ynh_sudo_passwordless: "false"
``` ```
## Dépendances ## Dépendances
......
...@@ -68,7 +68,7 @@ Starting with Yunohost 11.1, a new administrator group is created on the instanc ...@@ -68,7 +68,7 @@ Starting with Yunohost 11.1, a new administrator group is created on the instanc
By default, the user must type their password to use the sudo command but it is possible to disable this check from the web interface (`tools` > `YunoHost settings` > `Allow admins to use ‘sudo’ without re-typing their passwords`) or by changing the `ynh_sudo_passwordless` variable to `true` in your Ansible variables file. More information available [here](https://forum.yunohost.org/t/yunohost-11-1-release-sortie-de-yunohost-11-1/23378#passwordless-sudo-4). By default, the user must type their password to use the sudo command but it is possible to disable this check from the web interface (`tools` > `YunoHost settings` > `Allow admins to use ‘sudo’ without re-typing their passwords`) or by changing the `ynh_sudo_passwordless` variable to `true` in your Ansible variables file. More information available [here](https://forum.yunohost.org/t/yunohost-11-1-release-sortie-de-yunohost-11-1/23378#passwordless-sudo-4).
``yml ``yml
ynh_sudo_passwordless: false ynh_sudo_passwordless: "false"
``` ```
## Dependencies ## Dependencies
......
...@@ -39,5 +39,6 @@ ynh_autoupdate: ...@@ -39,5 +39,6 @@ ynh_autoupdate:
# system: True # system: True
# dest_script: "/usr/local/bin/" # dest_script: "/usr/local/bin/"
ynh_ssh_port: "22" ynh_ssh_commands:
ynh_sudo_passwordless: false yunohost settings set security.ssh.port -v: "22"
yunohost settings set security.password.passwordless_sudo -v: "false"
...@@ -31,3 +31,8 @@ ...@@ -31,3 +31,8 @@
tags: tags:
- yunohost - yunohost
- ssh - ssh
- name: (WIP) YunoHost commands
ansible.builtin.command:
"{{ item.key }} {{ item.value }}"
loop: "{{ ynh_ssh_commands | dict2items }}"
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment