Skip to content

Instantly share code, notes, and snippets.

@richlv
Created January 12, 2019 12:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save richlv/e17ea8db4fee513894bb88e639cf5288 to your computer and use it in GitHub Desktop.
Save richlv/e17ea8db4fee513894bb88e639cf5288 to your computer and use it in GitHub Desktop.
- name: Import Zabbix templates
zabbix_template:
server_url: "http://localhost/zabbix/"
login_user: zbx_api_cli
login_password: "{{zbx_api_cli_password}}"
template_name: "{{item}}"
template_json: "{{ lookup('file', 'files/zabbix-templates/zbx_template-' + item + '.json') }}"
state: present
tags: zabbixtemplate
loop: "{{zabbix_templates}}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment