From dcde6f7ce480be17130130bc77f5ceb8dac9649c Mon Sep 17 00:00:00 2001 From: Arthur BOUDREAULT <boudreaultarthur@ik.me> Date: Tue, 9 Nov 2021 11:53:09 +0100 Subject: [PATCH] refactor: Add details about template files type values in readmes --- README-FR.md | 4 +++- README.md | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/README-FR.md b/README-FR.md index 421eb05..883dcfa 100644 --- a/README-FR.md +++ b/README-FR.md @@ -125,7 +125,9 @@ Cette tâche utilisant le module template, vous pouvez tout à fait utiliser vos - `src` est obligatoire. Il s'agit du répertoire où le fichier de template se situe sur la machine qui execute Ansible. - `dest` est obligatoire. Il s'agit du répertoire où le fichier de template va être stocké. -- `type` est obligatoire. Si vous précisez comme valeur `script` alors le fichier de template aura pour droits 740 et il sera exécuté après son transfert sur le serveur Yunohost puis il sera supprimé. +- `type` est obligatoire : + - Si vous précisez comme valeur `script` alors le fichier de template aura pour droits 740. Il sera exécuté après son transfert sur le serveur Yunohost (généralement dans `/tmp/`) puis il sera supprimé. + - Si vous précisez comme valeur `config` alors le fichier de template aura pour droits 660. Il sera transféré sur le serveur Yunohost (généralement dans `/var/www/AppName/`) et vous pourrez l'importer avec un script shell à côté par exemple. Pour `owner` et `group`, par défaut le fichier va prendre comme utilisateur propriétaire le nom de l'application et comme groupe propriétaire www-data (groupe NGINX). Vous pouvez les changer en précisant des valeurs différentes. diff --git a/README.md b/README.md index e264314..0647f8d 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,9 @@ Because this task uses the template module, you can use your own variables and c - `src` is mandatory. This is the directory where the template file is located on the machine running Ansible. - `dest` is mandatory. This is the directory where the template file will be stored. -- `type` is mandatory. If you specify `script` as the value, then the template file will have 740 rights and will be executed after it is transferred to the Yunohost server and then deleted. +- `type` is mandatory: + - If you specify `script` as the value, then the template file will have 740 rights. It will be executed after it is transferred to the Yunohost server (usually in `/tmp/`) and then deleted. + - If you specify `config` as the value, then the template file will have 660 rights. It will be transferred to the Yunohost server (usually in `/var/www/AppName/`) and after you could import it with a shell script on the side for example. For `owner` and `group`, by default the file will take as owner the name of the application and as owner www-data(NGINX group). You can change them by specifying different values. -- GitLab