2021-06-26 11:42:17 +02:00
|
|
|
---
|
2022-12-31 13:43:36 +01:00
|
|
|
- name: "Common | Kopiere PHP-CLI-Konfiguration"
|
|
|
|
ansible.builtin.copy:
|
2023-05-21 23:01:31 +02:00
|
|
|
src: 30-sao-nextcloud.ini
|
2022-06-09 15:14:48 +02:00
|
|
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
2023-05-21 23:01:31 +02:00
|
|
|
mode: "0644"
|
2022-06-09 15:14:48 +02:00
|
|
|
|
2022-12-31 13:43:36 +01:00
|
|
|
- name: "Common | Aktiviere PHP-CLI-Konfiguration"
|
|
|
|
ansible.builtin.file:
|
2022-06-09 15:14:48 +02:00
|
|
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
2022-06-09 14:55:13 +02:00
|
|
|
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao-nextcloud.ini"
|
2022-06-09 15:14:48 +02:00
|
|
|
state: link
|
2021-08-18 21:08:44 +02:00
|
|
|
|
2023-05-21 23:01:31 +02:00
|
|
|
- name: "Common | Ermittle aktuelle Nextcloud-Version"
|
2022-12-31 13:43:36 +01:00
|
|
|
ansible.builtin.shell:
|
2022-10-08 22:47:54 +02:00
|
|
|
cmd: curl -sL "{{ nextcloud_github_api_url }}" | jq -r ".tag_name" | cut -d 'v' -f2
|
|
|
|
changed_when: false
|
2023-09-26 11:57:18 +02:00
|
|
|
check_mode: false
|
2022-10-08 22:47:54 +02:00
|
|
|
register: latest_version
|
|
|
|
|
2022-12-31 13:43:36 +01:00
|
|
|
- name: "Common | Kopiere Update-Skript"
|
|
|
|
ansible.builtin.template:
|
2023-05-21 23:01:31 +02:00
|
|
|
src: nextcloud-updater.j2
|
2022-07-26 16:54:45 +02:00
|
|
|
dest: "/usr/local/bin/nextcloud-updater"
|
2023-05-21 23:01:31 +02:00
|
|
|
mode: "0755"
|