1
0
Fork 0
ynh-lydra-ansible-yunohost/tasks/app.yml
2017-08-24 18:42:00 +02:00

8 lines
349 B
YAML

---
- 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 %}"
when: yunohost_app_installed.stat.exists == False