Newer
Older
Requirements
------------
None.
Role Variables
--------------
Arthur BOUDREAULT
committed
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.
Arthur BOUDREAULT
committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
---
# 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
```
Dependencies
------------
None.
Example Playbook
----------------
```yml
Arthur BOUDREAULT
committed
---
- name: Install Yunohost on Debian Server
hosts: dev
become: True
tags:
- deploy
Arthur BOUDREAULT
committed
- ansible-yunohost
Arthur BOUDREAULT
committed
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
-------------------------------------------------------
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