Add app installation
This commit is contained in:
parent
6e117907f0
commit
4ae7bc198b
3 changed files with 20 additions and 3 deletions
|
@ -2,10 +2,14 @@ yunohost:
|
||||||
# Link to the install script
|
# Link to the install script
|
||||||
install_script_url: https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohost
|
install_script_url: https://raw.githubusercontent.com/YunoHost/install_script/master/install_yunohost
|
||||||
# The main domain
|
# The main domain
|
||||||
domain: mydomain.fr
|
domain: example.com
|
||||||
# Yunohost admin password
|
# Yunohost admin password
|
||||||
password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
|
password: MYINSECUREPWD_PLZ_OVERRIDE_THIS
|
||||||
# If you don't want to use a noho.st url
|
# If you don't want to use a noho.st url
|
||||||
ignore_dyndns: False
|
ignore_dyndns: False
|
||||||
# The list of apps you want to install (not working yet).
|
# The list of apps you want to install.
|
||||||
apps: ~
|
apps:
|
||||||
|
- 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.
|
||||||
|
path: /var/www/ttrss
|
||||||
|
domain: example.com
|
||||||
|
|
8
tasks/app.yml
Normal file
8
tasks/app.yml
Normal file
|
@ -0,0 +1,8 @@
|
||||||
|
---
|
||||||
|
- name: Test if this app is already installed
|
||||||
|
stat: path={{ app.args.path }}
|
||||||
|
register: yunohost_app_installed
|
||||||
|
|
||||||
|
- name: Install app
|
||||||
|
shell: yunohost app install {{ app.link }} --args {% for key, value in app.args.items() %}{{key}}={{value}}{% if not loop.last %}\&{% endif %}{% endfor %} >> ~/log.txt
|
||||||
|
when: yunohost_app_installed.stat.exists == False
|
|
@ -33,3 +33,8 @@
|
||||||
- name: Install certificates
|
- name: Install certificates
|
||||||
shell: "yunohost domain cert-install"
|
shell: "yunohost domain cert-install"
|
||||||
when: yunohost_file_install.stat.exists == False
|
when: yunohost_file_install.stat.exists == False
|
||||||
|
|
||||||
|
- name: Install apps
|
||||||
|
include: app.yml app={{item}}
|
||||||
|
with_items: "{{ yunohost.apps }}"
|
||||||
|
when: yunohost.apps
|
||||||
|
|
Loading…
Reference in a new issue