24 lines
831 B
YAML
24 lines
831 B
YAML
---
|
|
- name: "Common | Kopiere PHP-CLI-Konfiguration"
|
|
ansible.builtin.copy:
|
|
src: 30-sao-nextcloud.ini
|
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
|
mode: "0644"
|
|
|
|
- name: "Common | Aktiviere PHP-CLI-Konfiguration"
|
|
ansible.builtin.file:
|
|
src: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
|
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao-nextcloud.ini"
|
|
state: link
|
|
|
|
- name: "Common | Ermittle aktuelle Nextcloud-Version"
|
|
ansible.builtin.shell:
|
|
cmd: curl -sL "{{ nextcloud_github_api_url }}" | jq -r ".tag_name" | cut -d 'v' -f2
|
|
changed_when: false
|
|
register: latest_version
|
|
|
|
- name: "Common | Kopiere Update-Skript"
|
|
ansible.builtin.template:
|
|
src: nextcloud-updater.j2
|
|
dest: "/usr/local/bin/nextcloud-updater"
|
|
mode: "0755"
|