1
0
Fork 0
ynh-lydra-ansible-yunohost/tasks/app.yml

9 lines
349 B
YAML
Raw Normal View History

2017-08-23 15:23:31 +02:00
---
- name: Test if this app is already installed
stat: path={{ app.args.path }}
register: yunohost_app_installed
- name: Install app
2017-08-24 18:42:00 +02:00
shell: yunohost app install {{ app.link }} --args "{% for key, value in app.args.items() %}{{key}}={{value}}{% if not loop.last %}&{% endif %}{% endfor %}"
2017-08-23 15:23:31 +02:00
when: yunohost_app_installed.stat.exists == False