2020-07-10 00:58:55 +02:00
|
|
|
---
|
2020-09-12 17:12:40 +02:00
|
|
|
{%- from "nextcloud_desktop/map.jinja" import nextcloud_desktop with context %}
|
|
|
|
|
|
|
|
nextcloud-appimage:
|
2020-07-10 00:58:55 +02:00
|
|
|
file.managed:
|
2020-09-12 17:12:40 +02:00
|
|
|
- name: {{ nextcloud_desktop.dest_path }}
|
|
|
|
- source: {{ nextcloud_desktop.url }}/Nextcloud-{{ nextcloud_desktop.version }}-x86_64.AppImage
|
|
|
|
- skip_verify: True
|
2020-07-10 00:58:55 +02:00
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 755
|
2020-09-12 17:12:40 +02:00
|
|
|
- if_missing: {{ nextcloud_desktop.dest_path }}-{{ netxcloud.version }}
|
|
|
|
|
|
|
|
nextcloud-install-link:
|
|
|
|
file.symlink:
|
|
|
|
- name: {{ nextcloud_desktop.dest_path }}
|
|
|
|
- target: {{ nextcloud_desktop.dest_path }}/{{ nextcloud.version }}
|
|
|
|
- force: True
|
2020-07-10 00:58:55 +02:00
|
|
|
|
2020-09-12 17:12:40 +02:00
|
|
|
nextcloud-desktop-icon:
|
2020-07-10 00:58:55 +02:00
|
|
|
file.managed:
|
|
|
|
- name: /usr/share/icons/nextcloud.png
|
|
|
|
- source: salt://nextcloud_desktop/nextcloud.png
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 644
|
|
|
|
|
2020-09-12 17:12:40 +02:00
|
|
|
nextcloud-desktop-icon-entry:
|
2020-07-10 00:58:55 +02:00
|
|
|
file.managed:
|
|
|
|
- name: /usr/share/applications/nextcloud.desktop
|
|
|
|
- source: salt://nextcloud_desktop/nextcloud.desktop
|
|
|
|
- user: root
|
|
|
|
- group: root
|
|
|
|
- mode: 644
|