Pfadanpassungen, Ermittle php-Version, munin-Task

This commit is contained in:
phil 2021-12-21 22:47:24 +01:00
parent 0bbd45ac53
commit 6c2cecfe91
6 changed files with 83 additions and 14 deletions

View file

@ -1,5 +1,5 @@
---
- name: "common: Apache-Module laden"
- name: "common | Apache-Module laden"
apache2_module:
state: present
name: "{{ item }}"
@ -9,25 +9,36 @@
- setenvif
notify: restart apache
- name: "common: Apache-Vorlage für Seitenkonfiguration kopieren"
- name: "common | Apache-Vorlage für Seitenkonfiguration kopieren"
copy:
src: roles/nextcloud/files/apache_site.conf
src: ../roles/nextcloud/files/apache_site.conf
dest: /etc/apache2/sites-available/nextcloud.conf
- name: "common: Apache-Seitenkonfiguration aktivieren"
- name: "common | Apache-Seitenkonfiguration aktivieren"
file:
src: /etc/apache2/sites-available/nextcloud.conf
dest: /etc/apache2/sites-enabled/nextcloud.conf
state: link
notify: reload apache
- name: "common: Kopiere PHP-CLI-Konfiguration"
- name: "common | Kopiere PHP-CLI-Konfiguration"
copy:
src: roles/nextcloud/files/30-sao.ini
dest: "/etc/php/{{ php_version }}/cli/conf.d/30-sao.ini"
src: ../roles/nextcloud/files/30-sao.ini
dest: "/etc/php/{{ php_version.stdout }}/cli/conf.d/30-sao.ini"
- name: "common: Kopiere Update-Skript"
- name: "common | Kopiere Update-Skript"
template:
src: roles/nextcloud/templates/nextcloud-updater.j2
src: ../roles/nextcloud/templates/nextcloud-updater.j2
dest: "{{ local_scripts_dir }}/nextcloud-updater"
mode: 0755
- 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_"
mode: 0755