From c2311313f2f1e178862878df283df366cb104089 Mon Sep 17 00:00:00 2001 From: phil Date: Tue, 26 Jul 2022 16:43:24 +0200 Subject: [PATCH] nextcloud: Entferne Munin-Konfiguration. Das Plugin bietet keinen wirklichen Mehrwert --- tasks/munin.yml | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 tasks/munin.yml diff --git a/tasks/munin.yml b/tasks/munin.yml deleted file mode 100644 index 0a65ce3..0000000 --- a/tasks/munin.yml +++ /dev/null @@ -1,45 +0,0 @@ ---- -- name: "munin | Verlinke Plugin" - file: - src: "{{ local_munin_path }}/nextcloud_" - dest: "/etc/munin/plugins/nextcloud_{{ instance.domain }}" - state: link - notify: restart munin-node - -- name: "userinfo" - command: - cmd: 'php occ user:info munin' - chdir: "{{ nextcloud_root }}/{{ instance.domain }}" - become: true - become_user: "{{ instance.user }}" - ignore_errors: true - changed_when: false - register: occ_user - -- name: "munin | Erstelle Nutzer" - command: - cmd: 'php occ user:add --display-name="munin" --password-from-env munin' - chdir: "{{ nextcloud_root }}/{{ instance.domain }}" - environment: - OC_PASS: "{{ nextcloud_munin_user_password }}" - become: true - become_user: "{{ instance.user }}" - register: occ_user_created - when: occ_user.stdout == "user not found" - -- name: "munin | Kopiere Konfiguration" - blockinfile: - path: /etc/munin/plugin-conf.d/nextcloud - create: true - mode: 0600 - marker_begin: "{{ instance.domain }}" - block: | - [{{ instance.domain }}] - env.username munin - env.password {{ nextcloud_munin_user_password }} - env.api_path /ocs/v2.php/apps/serverinfo/api/v1/info - env.scheme https - env.timeout 2s - env.updates_warning 1 - when: occ_user_created.changed - notify: restart munin-node \ No newline at end of file