Преглед на файлове

Merge pull request #140 from detiber/os_zabbix

move zbxapi module to a new os_zabbix role
Thomas Wiest преди 10 години
родител
ревизия
b87616816b
променени са 4 файла, в които са добавени 4 реда и са изтрити 2 реда
  1. 3 1
      playbooks/adhoc/noc/get_zabbix_problems.yml
  2. 0 1
      playbooks/adhoc/noc/library
  3. 1 0
      playbooks/adhoc/noc/roles
  4. 0 0
      roles/os_zabbix/library/zbxapi.py

+ 3 - 1
playbooks/adhoc/noc/get_zabbix_problems.yml

@@ -2,7 +2,9 @@
 - name: 'Get current hosts who have triggers that are alerting by trigger description'
   hosts: localhost
   gather_facts: no
-  tasks:
+  roles:
+    - os_zabbix
+  post_tasks:
     - assert:
         that: oo_desc is defined
 

+ 0 - 1
playbooks/adhoc/noc/library

@@ -1 +0,0 @@
-../../../library

+ 1 - 0
playbooks/adhoc/noc/roles

@@ -0,0 +1 @@
+../../../roles

library/zbxapi.py → roles/os_zabbix/library/zbxapi.py