Signed-off-by: David Galloway <dgallowa@redhat.com>
--- /dev/null
+---
+- hosts: long_running_cluster
+ tasks:
+ - name: Pull in vars from common role
+ include_vars: "roles/common/vars/{{ ansible_pkg_mgr }}_systems.yml"
+
+- hosts: long_running_cluster
+ become: true
+ roles:
+ - long_running_cluster
+ handlers:
+ - import_tasks: roles/common/handlers/main.yml
--- /dev/null
+---
+# We only need to install nagios checks on MON nodes
+- name: Check if MON node
+ command: "systemctl status ceph-mon@{{ ansible_hostname }}"
+ ignore_errors: true
+ changed_when: false
+ register: mon_service_status
+
+- import_tasks: nagios.yml
+ when: mon_service_status.rc == 0