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

:white_check_mark:Resolve "refactor vars"

Merged Arthur BOUDREAULT requested to merge 2-refactor-vars into master
1 file
+ 130
41
Compare changes
  • Side-by-side
  • Inline
+ 51
48
ansible-yunohost
=========
# ansible-yunohost
[🇫🇷 French version](README-FR.md)
Deploy Yunohost with Ansible!
Requirements
------------
## Requirements
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
yunohost:
# Link to the install script
install_script_url: https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohost
# The main domain, then a list of other domains.
domain: example.com
extra_domains:
- example2.com
- example3.com
# Yunohost admin password
password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
# If you don't want to use a noho.st url
ignore_dyndns: False
# The list of apps you want to install.
apps:
- label: Tiny Tiny RSS # Label is important, it's a reference for the Playbook.
link: ttrss # It can be the name of an official app or a github link
args: # Provide here args. Path and domain are mandatory, other args depend of the app (cf manifest.json of app).
path: /ttrss
domain: example.com
# The list of frontend users.
users:
- name: user1 # user which uses the default domain for its account
pass: p@ssw0rd
firstname: Jane
lastname: Doe
domain: '{{ domain }}'
- name: user2 # user which uses the first extra_domain for its account
pass: p@ssw0rd
firstname: John
lastname: Doe
domain: '{{ extra_domain.[1] }}'
---
# 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
```
Dependencies
------------
## Dependencies
None.
Example Playbook
----------------
## Example Playbook
```yml
- name: Provision servers
---
- name: Install Yunohost on Debian Server
hosts: all
remote_user: root
become: True
pre_tasks:
- name: Update all packages and index
ansible.builtin.apt:
upgrade: dist
update_cache: yes
roles:
- { role: sylvainar.yunohost }
- ansible-yunohost
```
License
-------
## License
GPL-3.0
Loading