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 6d174d1b authored by Arthur BOUDREAULT's avatar Arthur BOUDREAULT Committed by Christophe Chaudier
Browse files

:recycle:refactor: Modified variables for consistency + Readme in English and French

parent 1405824d
No related branches found
No related tags found
1 merge request!3✅Resolve "refactor vars"
...@@ -10,40 +10,47 @@ None. ...@@ -10,40 +10,47 @@ None.
Role Variables Role Variables
-------------- --------------
Default variables are available in `default/main.yml` however it is necessary to override them according to your needs for Yunohost domains, users and apps.
Example of Variables: Example of Variables:
```yml ```yml
yunohost: ---
# Link to the install script # Debian 10 script only.
install_script_url: https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohost ynh_install_script_url: https://install.yunohost.org
# The main domain, then a list of other domains.
domain: example.com ynh_admin_password: uo3A2iq4CtkUdt
extra_domains:
- example2.com # The list of domains.
- example3.com ynh_main_domain: poclydra.eu
# Yunohost admin password ynh_extra_domains:
password: MYINSECUREPWD_PLZ_OVERRIDE_THIS - forum.poclydra.eu
# If you don't want to use a noho.st url - wiki.poclydra.eu
ignore_dyndns: False ynh_ignore_dyndns_server: False
# The list of apps you want to install.
apps: # The list of Yunohost users.
- label: Tiny Tiny RSS # Label is important, it's a reference for the Playbook. ynh_users:
link: ttrss # It can be the name of an official app or a github link - name: user1
args: # Provide here args. Path and domain are mandatory, other args depend of the app (cf manifest.json of app). pass: q97CrbNHJFKuWz
path: /ttrss firstname: Jane
domain: example.com lastname: Doe
# The list of frontend users. mail_domain: poclydra.eu
users:
- name: user1 # user which uses the default domain for its account # The list of Yunohost apps.
pass: p@ssw0rd ynh_apps:
firstname: Jane - label: WikiJS # Label is important, it's a reference for the Playbook.
lastname: Doe link: wikijs # It can be the name of an official app or a git repo link.
domain: '{{ domain }}' args: # Provide args. Domain and pah are mandatory, for other args read manifest.json of app.
- name: user2 # user which uses the first extra_domain for its account domain: wiki.poclydra.eu
pass: p@ssw0rd path: /
firstname: John admin: user1
lastname: Doe is_public: no
domain: '{{ extra_domain.[1] }}' - label: Discourse
link: discourse
args:
domain: forum.poclydra.eu
path: /
admin: user1
is_public: yes
``` ```
Dependencies Dependencies
...@@ -54,20 +61,102 @@ None. ...@@ -54,20 +61,102 @@ None.
Example Playbook Example Playbook
---------------- ----------------
```yml ```yml
- name: Provision servers ---
hosts: all - name: Install Yunohost on Debian Server
remote_user: root hosts: dev
pre_tasks: become: True
- name: Update all packages and index tags:
ansible.builtin.apt: - deploy
upgrade: dist
update_cache: yes
roles: roles:
- { role: sylvainar.yunohost } - ansible-yunohost
``` ```
License License
------- -------
GPL-3.0 GPL-3.0
-------------------------------------------------------
ansible-yunohost
=========
Deployez Yunohost avec Ansible !
Prérequis
------------
Aucun.
Role Variables
--------------
Les variables par défaut sont disponibles dans `default/main.yml` cependant il est nécessaire de les surcharger selon vos besoins en termes de domaines, d'utilisateurs et d'applications sur Yunohost.
Exemple de Variables:
```yml
---
# Debian 10 script only.
ynh_install_script_url: https://install.yunohost.org
ynh_admin_password: uo3A2iq4CtkUdt
# The list of domains.
ynh_main_domain: poclydra.eu
ynh_extra_domains:
- forum.poclydra.eu
- wiki.poclydra.eu
ynh_ignore_dyndns_server: False
# The list of Yunohost users.
ynh_users:
- name: user1
pass: q97CrbNHJFKuWz
firstname: Jane
lastname: Doe
mail_domain: poclydra.eu
# The list of Yunohost apps.
ynh_apps:
- label: WikiJS # Label is important, it's a reference for the Playbook.
link: wikijs # It can be the name of an official app or a git repo link.
args: # Provide args. Domain and pah are mandatory, for other args read manifest.json of app.
domain: wiki.poclydra.eu
path: /
admin: user1
is_public: no
- label: Discourse
link: discourse
args:
domain: forum.poclydra.eu
path: /
admin: user1
is_public: yes
```
Dépendances
------------
Aucune.
Exemple de Playbook
----------------
```yml
---
- name: Deploy Yunohost on Debian Server
hosts: dev
become: True
tags:
- deploy
roles:
- ansible-yunohost
```
License
-------
GPL-3.0
\ No newline at end of file
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