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:17:06 +02:00
|
|
|
- name: {{ nextcloud_desktop.dest_path }}-{{ nextcloud_desktop.version }}
|
2020-09-12 17:12:40 +02:00
|
|
|
- source: {{ nextcloud_desktop.url }}/Nextcloud-{{ nextcloud_desktop.version }}-x86_64.AppImage
|
2020-09-12 17:41:35 +02:00
|
|
|
- skip_verify: true
|
2020-07-10 00:58:55 +02:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2022-06-10 00:13:19 +02:00
|
|
|
- mode: "0755"
|
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:41:35 +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
|
2023-06-29 08:57:06 +02:00
|
|
|
- source: salt://nextcloud_desktop/files/nextcloud.png
|
2020-07-10 00:58:55 +02:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2022-06-10 00:13:19 +02:00
|
|
|
- mode: "0644"
|
2020-07-10 00:58:55 +02:00
|
|
|
|
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
|
2023-06-29 08:57:06 +02:00
|
|
|
- source: salt://nextcloud_desktop/files/nextcloud.desktop
|
2020-07-10 00:58:55 +02:00
|
|
|
- user: root
|
|
|
|
- group: root
|
2022-06-10 00:13:19 +02:00
|
|
|
- mode: "0644"
|