1
0
Fork 0
ynh-lydra-ansible-yunohost/tasks/app.yml
2017-08-23 15:23:31 +02:00

8 lines
361 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 %} >> ~/log.txt
when: yunohost_app_installed.stat.exists == False