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
---
# Debian 10 script only.
ynh_install_script_url: https://install.yunohost.org
ynh_admin_password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
Arthur BOUDREAULT
committed
# The list of domains.
ynh_main_domain: poclydra.eu
ynh_extra_domains:
- forum.poclydra.eu
ynh_main_domain: domain.tld
ynh_extra_domains:
- forum.domain.tld
- wiki.domain.tld
Arthur BOUDREAULT
committed
ynh_ignore_dyndns_server: False
# The list of Yunohost users.
ynh_users:
- name: user1
pass: MYINSECUREPWD_PLZ_OVERRIDE_THIS
Arthur BOUDREAULT
committed
firstname: Jane
lastname: Doe
Arthur BOUDREAULT
committed
# 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.
Arthur BOUDREAULT
committed
path: /
admin: user1
is_public: no
- label: Discourse
link: discourse
args:
Arthur BOUDREAULT
committed
path: /
admin: user1
is_public: yes
```
Dependencies
------------
None.
Example Playbook
----------------
```yml
Arthur BOUDREAULT
committed
---
- name: Install Yunohost on Debian Server
Arthur BOUDREAULT
committed
become: True
pre_tasks:
- name: Update all packages and index
ansible.builtin.apt:
upgrade: dist
update_cache: yes
Arthur BOUDREAULT
committed
Arthur BOUDREAULT
committed
- ansible-yunohost
Arthur BOUDREAULT
committed
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
163
164
165
166
167
168
-------------------------------------------------------
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