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:
|
|
|
|
- { name: macro }
|
|
|
|
- { name: mpm_prefork, state: absent }
|
|
|
|
- { name: mpm_event }
|
|
|
|
- { name: proxy_fcgi }
|
|
|
|
- { name: setenvif }
|
2021-06-26 11:42:17 +02:00
|
|
|
notify: restart apache
|
|
|
|
|
2021-12-21 22:47:24 +01:00
|
|
|
- name: "common | Apache-Vorlage für Seitenkonfiguration kopieren"
|
2021-06-26 11:42:17 +02:00
|
|
|
copy:
|
2021-12-21 22:47:24 +01:00
|
|
|
src: ../roles/nextcloud/files/apache_site.conf
|
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
|
|
|
|
2022-07-26 16:44:42 +02:00
|
|
|
- name: common | Erstelle PHP-FPM-Log-Verzeichnis
|
|
|
|
file:
|
|
|
|
path: "{{ php_fpm_log_dir }}"
|
|
|
|
state: directory
|
|
|
|
|
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-07-26 16:44:42 +02:00
|
|
|
- name: "common | Kopiere Template für systemd socket"
|
|
|
|
copy:
|
|
|
|
src: "../roles/nextcloud/files/systemd/php-fpm@.socket"
|
|
|
|
dest: /etc/systemd/system/php-fpm@.socket
|
|
|
|
notify:
|
|
|
|
- stop php-fpm-socket
|
|
|
|
- stop php-fpm-service
|
|
|
|
- start php-fpm-socket
|
|
|
|
|
|
|
|
- name: "common | Kopiere Template für systemd service"
|
|
|
|
template:
|
|
|
|
src: ../roles/nextcloud/templates/systemd/php-fpm@.service.j2
|
|
|
|
dest: /etc/systemd/system/php-fpm@.service
|
|
|
|
notify:
|
|
|
|
- stop php-fpm-socket
|
|
|
|
- stop php-fpm-service
|
|
|
|
- start php-fpm-socket
|
|
|
|
|
|
|
|
- name: "common | Aktiviere systemd Socket und Service"
|
|
|
|
systemd:
|
|
|
|
name: "{{ item }}"
|
|
|
|
enabled: true
|
|
|
|
daemon_reload: true
|
|
|
|
loop:
|
|
|
|
- php-fpm@.socket
|
|
|
|
- php-fpm@.service
|
|
|
|
|
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
|
2021-08-18 21:08:44 +02:00
|
|
|
dest: "{{ local_scripts_dir }}/nextcloud-updater"
|
|
|
|
mode: 0755
|
2021-12-21 22:47:24 +01:00
|
|
|
|
|
|
|
- name: "common | Erstelle munin-Verzeichnis"
|
|
|
|
file:
|
|
|
|
path: "{{ local_munin_path }}"
|
|
|
|
state: directory
|
|
|
|
|
|
|
|
- name: "common | Kopiere munin-Daten"
|
|
|
|
get_url:
|
|
|
|
url: https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/nextcloud/nextcloud_
|
|
|
|
dest: "{{ local_munin_path }}/nextcloud_"
|
2022-06-09 14:55:13 +02:00
|
|
|
mode: 0755
|