2021-10-15 14:20:45 +02:00
[![ ](https://img.shields.io/liberapay/receives/cchaudier.svg?logo=liberapay )](https://liberapay.com/cchaudier/donate)
[![ ](https://lab.frogg.it/lydra/yunohost/ansible-yunohost/badges/main/pipeline.svg )](https://lab.frogg.it/lydra/yunohost/ansible-yunohost/-/pipelines)
[![License: GPL v3 ](https://img.shields.io/badge/License-GPL%20v3-blue.svg )](http://www.gnu.org/licenses/gpl-3.0)
2021-10-15 14:55:59 +02:00
[![Ansible Role ](https://img.shields.io/ansible/role/56544 )](https://galaxy.ansible.com/lydra/yunohost)
[![Ansible Quality Score ](https://img.shields.io/ansible/quality/56544 )](https://galaxy.ansible.com/lydra/yunohost)
[![Ansible Role ](https://img.shields.io/ansible/role/d/56544 )](https://galaxy.ansible.com/lydra/yunohost)
2021-10-15 14:20:45 +02:00
[![GitHub last commit ](https://img.shields.io/github/last-commit/LydraFr/ansible-yunohost )](https://github.com/LydraFr/ansible-yunohost)
[![GitHub Release Date ](https://img.shields.io/github/release-date/LydraFr/ansible-yunohost )](https://github.com/LydraFr/ansible-yunohost)
[![GitHub Repo stars ](https://img.shields.io/github/stars/LydraFr/ansible-yunohost?style=social )](https://github.com/LydraFr/ansible-yunohost)
2021-10-12 14:27:37 +02:00
# ansible-yunohost
[🇫🇷 French version ](README-FR.md )
2017-08-23 12:58:21 +02:00
2021-05-01 17:13:18 +02:00
Deploy Yunohost with Ansible!
2017-08-23 12:58:21 +02:00
2021-10-12 14:27:37 +02:00
## Requirements
2017-08-23 12:58:21 +02:00
None.
2021-10-12 14:27:37 +02:00
## 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.
2017-08-23 12:58:21 +02:00
2021-10-12 14:27:37 +02:00
## Example of Variables
2017-08-23 12:58:21 +02:00
```yml
2021-10-12 14:27:37 +02:00
---
# Debian 10 script only.
ynh_install_script_url: https://install.yunohost.org
ynh_admin_password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
# The list of domains.
ynh_main_domain: domain.tld
ynh_extra_domains:
- forum.domain.tld
- wiki.domain.tld
ynh_ignore_dyndns_server: False
# The list of Yunohost users.
ynh_users:
- name: user1
pass: MYINSECUREPWD_PLZ_OVERRIDE_THIS
firstname: Jane
lastname: Doe
mail_domain: domain.tld
# 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.domain.tld
path: /
admin: user1
is_public: no
- label: Discourse
link: discourse
args:
domain: forum.domain.tld
path: /
admin: user1
is_public: yes
2017-08-23 12:58:21 +02:00
```
2021-10-12 14:27:37 +02:00
## Dependencies
2017-08-23 12:58:21 +02:00
None.
2021-10-12 14:27:37 +02:00
## Example Playbook
2017-08-23 12:58:21 +02:00
```yml
2021-10-12 14:27:37 +02:00
---
- name: Install Yunohost on Debian Server
2017-08-23 12:58:21 +02:00
hosts: all
2021-10-12 14:27:37 +02:00
become: True
2017-08-23 12:58:21 +02:00
pre_tasks:
- name: Update all packages and index
2021-05-01 17:13:18 +02:00
ansible.builtin.apt:
2017-08-23 12:58:21 +02:00
upgrade: dist
update_cache: yes
2021-10-12 14:27:37 +02:00
2017-08-23 12:58:21 +02:00
roles:
2021-10-12 14:27:37 +02:00
- ansible-yunohost
2017-08-23 12:58:21 +02:00
```
2021-10-12 14:27:37 +02:00
## License
2017-08-23 12:58:21 +02:00
GPL-3.0