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 %}
|
|
|
|
|
2020-09-12 17:14:57 +02:00
|
|
|
nextcloud-desktop-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:14:57 +02:00
|
|
|
- if_missing: {{ nextcloud_desktop.dest_path }}-{{ nextcloud_desktop.version }}
|
2020-09-12 17:12:40 +02:00
|
|
|
|
2020-09-12 17:14:57 +02:00
|
|
|
nextcloud-desktop-install-link:
|
2020-09-12 17:12:40 +02:00
|
|
|
file.symlink:
|
|
|
|
- name: {{ nextcloud_desktop.dest_path }}
|
2020-09-12 17:16:25 +02:00
|
|
|
- target: {{ nextcloud_desktop.dest_path }}-{{ nextcloud_desktop.version }}
|
2020-09-12 17:12:40 +02:00
|
|
|
- force: True
|
2020-09-12 17:14:57 +02:00
|
|
|
- watch:
|
|
|
|
- file: nextcloud-desktop-appimage
|
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
|