ansible-role-nextcloud/tasks/common.yml

25 lines
831 B
YAML
Raw Normal View History

---
2022-12-31 13:43:36 +01:00
- 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"
2022-12-31 13:43:36 +01:00
- 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
2021-08-18 21:08:44 +02:00
- name: "Common | Ermittle aktuelle Nextcloud-Version"
2022-12-31 13:43:36 +01:00
ansible.builtin.shell:
cmd: curl -sL "{{ nextcloud_github_api_url }}" | jq -r ".tag_name" | cut -d 'v' -f2
changed_when: false
register: latest_version
2022-12-31 13:43:36 +01:00
- name: "Common | Kopiere Update-Skript"
ansible.builtin.template:
src: nextcloud-updater.j2
dest: "/usr/local/bin/nextcloud-updater"
mode: "0755"