summaryrefslogtreecommitdiffstats
path: root/playbooks/adhoc/zabbix_setup/create_application.yml
diff options
context:
space:
mode:
Diffstat (limited to 'playbooks/adhoc/zabbix_setup/create_application.yml')
-rw-r--r--playbooks/adhoc/zabbix_setup/create_application.yml18
1 files changed, 18 insertions, 0 deletions
diff --git a/playbooks/adhoc/zabbix_setup/create_application.yml b/playbooks/adhoc/zabbix_setup/create_application.yml
new file mode 100644
index 000000000..aa6c40ed8
--- /dev/null
+++ b/playbooks/adhoc/zabbix_setup/create_application.yml
@@ -0,0 +1,18 @@
+---
+- debug: var=ctp_template
+
+- name: Create Application
+ zbxapi:
+ server: "{{ ctp_zserver }}"
+ user: "{{ ctp_zuser }}"
+ password: "{{ ctp_zpassword }}"
+ zbx_class: Application
+ state: present
+ params:
+ name: "{{ ctp_template.application['name'] }}"
+ hostid: 10085
+ search:
+ name: "{{ ctp_template.application['name'] }}"
+ register: ctp_created_application
+
+- debug: var=ctp_created_application