2021-06-26 11:42:17 +02:00
|
|
|
---
|
2021-12-21 22:47:24 +01:00
|
|
|
- name: "common | Apache-Module laden"
|
2021-06-26 11:42:17 +02:00
|
|
|
apache2_module:
|
2022-07-26 16:44:42 +02:00
|
|
|
name: "{{ item.name }}"
|
|
|
|
state: "{{ item.state|default('present') }}"
|
|
|
|
loop:
|
2022-11-30 14:06:40 +01:00
|
|
|
- name: env
|
|
|
|
- name: expires
|
|
|
|
- name: headers
|
|
|
|
- name: macro
|
|
|
|
- name: mpm_event
|
|
|
|
- name: mpm_prefork
|
|
|
|
state: absent
|
|
|
|
- name: proxy_fcgi
|
|
|
|
- name: setenvif
|
2021-06-26 11:42:17 +02:00
|
|
|
notify: restart apache
|
|
|
|
|
2022-10-08 22:47:54 +02:00
|
|
|
- name: "common | Apache-Konfiguration für NC-Seiten"
|
|
|
|
file:
|
|
|
|
path: /etc/apache2/conf-available/nextcloud_sites.conf
|
|
|
|
state: touch
|
|
|
|
|
2021-12-21 22:47:24 +01:00
|
|
|
- name: "common | Apache-Vorlage für Seitenkonfiguration kopieren"
|
2022-10-08 22:47:54 +02:00
|
|
|
template:
|
|
|
|
src: ../roles/nextcloud/templates/apache_site.conf.j2
|
2021-06-26 11:42:17 +02:00
|
|
|
dest: /etc/apache2/sites-available/nextcloud.conf
|
2021-08-23 15:39:15 +02:00
|
|
|
|
2021-12-21 22:47:24 +01:00
|
|
|
- name: "common | Apache-Seitenkonfiguration aktivieren"
|
2021-06-26 11:42:17 +02:00
|
|
|
file:
|
|
|
|
src: /etc/apache2/sites-available/nextcloud.conf
|
|
|
|
dest: /etc/apache2/sites-enabled/nextcloud.conf
|
|
|
|
state: link
|
|
|
|
notify: reload apache
|
2021-08-18 21:02:20 +02:00
|
|
|
|
2021-12-21 22:47:24 +01:00
|
|
|
- name: "common | Kopiere PHP-CLI-Konfiguration"
|
2021-08-18 21:02:20 +02:00
|
|
|
copy:
|
2022-06-09 14:55:13 +02:00
|
|
|
src: ../roles/nextcloud/files/30-sao-nextcloud.ini
|
2022-06-09 15:14:48 +02:00
|
|
|
dest: "/etc/php/{{ php_version.stdout }}/mods-available/sao-nextcloud.ini"
|
|
|
|
|
|
|
|
- name: "common | Aktiviere PHP-CLI-Konfiguration"
|
|
|
|
file:
|
|
|
|
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
|
|
|
|
2022-10-08 22:47:54 +02:00
|
|
|
- name: "common | Ermittle letzte Version"
|
|
|
|
shell:
|
|
|
|
cmd: curl -sL "{{ nextcloud_github_api_url }}" | jq -r ".tag_name" | cut -d 'v' -f2
|
|
|
|
changed_when: false
|
|
|
|
register: latest_version
|
|
|
|
|
2021-12-21 22:47:24 +01:00
|
|
|
- name: "common | Kopiere Update-Skript"
|
2021-08-18 21:08:44 +02:00
|
|
|
template:
|
2021-12-21 22:47:24 +01:00
|
|
|
src: ../roles/nextcloud/templates/nextcloud-updater.j2
|
2022-07-26 16:54:45 +02:00
|
|
|
dest: "/usr/local/bin/nextcloud-updater"
|
2021-08-18 21:08:44 +02:00
|
|
|
mode: 0755
|