2017-08-23 12:58:21 +02:00
|
|
|
|
ansible-yunohost
|
|
|
|
|
=========
|
|
|
|
|
|
2021-05-01 17:13:18 +02:00
|
|
|
|
Deploy Yunohost with Ansible!
|
2017-08-23 12:58:21 +02:00
|
|
|
|
|
|
|
|
|
Requirements
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
None.
|
|
|
|
|
|
|
|
|
|
Role Variables
|
|
|
|
|
--------------
|
|
|
|
|
|
|
|
|
|
Example of Variables:
|
|
|
|
|
```yml
|
|
|
|
|
yunohost:
|
|
|
|
|
# Link to the install script
|
|
|
|
|
install_script_url: https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohost
|
2017-08-24 22:39:58 +02:00
|
|
|
|
# The main domain, then a list of other domains.
|
2017-08-23 15:27:01 +02:00
|
|
|
|
domain: example.com
|
2017-08-24 22:39:58 +02:00
|
|
|
|
extra_domains:
|
|
|
|
|
- example2.com
|
|
|
|
|
- example3.com
|
2017-08-23 12:58:21 +02:00
|
|
|
|
# Yunohost admin password
|
|
|
|
|
password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
|
|
|
|
|
# If you don't want to use a noho.st url
|
|
|
|
|
ignore_dyndns: False
|
2017-08-23 15:27:01 +02:00
|
|
|
|
# The list of apps you want to install.
|
|
|
|
|
apps:
|
2017-08-24 22:39:58 +02:00
|
|
|
|
- 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
|
2017-08-23 15:27:01 +02:00
|
|
|
|
domain: example.com
|
2021-05-01 18:33:45 +02:00
|
|
|
|
# The list of frontend users.
|
|
|
|
|
users:
|
|
|
|
|
- name: user1 # user which uses the default domain for its account
|
2017-09-17 21:25:30 +02:00
|
|
|
|
pass: p@ssw0rd
|
2017-11-21 17:57:13 +01:00
|
|
|
|
firstname: Jane
|
|
|
|
|
lastname: Doe
|
2021-05-01 18:33:45 +02:00
|
|
|
|
domain: {{ domain }}
|
2021-05-01 19:57:06 +02:00
|
|
|
|
- name: user2 # user which uses the first extra_domain for its account
|
2021-05-01 18:33:45 +02:00
|
|
|
|
pass: p@ssw0rd
|
2021-05-01 19:57:06 +02:00
|
|
|
|
firstname: John
|
2021-05-01 18:33:45 +02:00
|
|
|
|
lastname: Doe
|
|
|
|
|
domain: {{ extra_domain.[1] }}
|
2021-05-01 19:57:06 +02:00
|
|
|
|
admin_users:
|
|
|
|
|
- name: admin # user generated by yunohost as its admin user
|
|
|
|
|
key: ssh-rsa ... # key for admin user
|
|
|
|
|
- name: user1 # user generated by yunohost and defined by you
|
|
|
|
|
key: ssh-rsa ... # key for
|
2017-08-23 12:58:21 +02:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
Dependencies
|
|
|
|
|
------------
|
|
|
|
|
|
|
|
|
|
None.
|
|
|
|
|
|
|
|
|
|
Example Playbook
|
|
|
|
|
----------------
|
|
|
|
|
```yml
|
|
|
|
|
- name: Provision servers
|
|
|
|
|
hosts: all
|
|
|
|
|
remote_user: root
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
roles:
|
2017-08-24 22:39:58 +02:00
|
|
|
|
- { role: sylvainar.yunohost }
|
2017-08-23 12:58:21 +02:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
License
|
|
|
|
|
-------
|
|
|
|
|
|
|
|
|
|
GPL-3.0
|