Skip to content
Snippets Groups Projects
Commit 19e1e4ad authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: remove all tasks for configuring glances, now that we don't install it anymore

parent 8a08cacf
No related branches found
No related tags found
No related merge requests found
Pipeline #2656 failed
---
- name: find out if Glances Service is enabled
ansible.builtin.command: systemctl is-enabled glances.service
register: glances_enabled
changed_when: false
failed_when:
- glances_enabled.stdout != "enabled"
- glances_enabled.stdout != "disabled"
# this is idempotent
- name: stop Glances (web-)server
ansible.builtin.service:
name: "glances.service"
state: stopped
when:
# - ansible_os_family == "Debian"
- glances_enabled.stdout != "disabled"
# this is NOT idempotent, so it needs the "changed: false" stanza
- name: disable Glances (web-)server
ansible.builtin.service:
name: "glances.service"
enabled: false
when:
# - ansible_os_family == "Debian"
- glances_enabled.stdout != "disabled"
changed_when: false
...@@ -135,10 +135,10 @@ ...@@ -135,10 +135,10 @@
when: ansible_os_family == "RedHat" when: ansible_os_family == "RedHat"
tags: [postfix, mail] tags: [postfix, mail]
- name: Glances-Server abschalten #- name: Glances-Server abschalten
import_tasks: configure_glances.yml # import_tasks: configure_glances.yml
when: ansible_os_family != "RedHat" # RHEL 7 still runs Glances 2.5, which doesn't come with the glances.service SystemD unit # when: ansible_os_family != "RedHat" # RHEL 7 still runs Glances 2.5, which doesn't come with the glances.service SystemD unit
tags: [glances] # tags: [glances]
### CGROUP FÜR CHECK_MK KONFIGURIEREN ### ### CGROUP FÜR CHECK_MK KONFIGURIEREN ###
# - name: include cgroup CMK config # - name: include cgroup CMK config
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment