Browse Source

Merge pull request #140 from detiber/os_zabbix

move zbxapi module to a new os_zabbix role
Thomas Wiest 10 năm trước cách đây
mục cha
commit
b87616816b

+ 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