Advertisement
Guest User

Untitled

a guest
Feb 8th, 2017
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.57 KB | None | 0 0
  1. - name: "Create a new host or update an existing host's info"
  2. local_action:
  3. module: zabbix_host
  4. server_url: "{{ zabbix_url }}"
  5. login_user: "{{ zabbix_api_user }}"
  6. login_password: "{{ zabbix_api_pass }}"
  7. host_name: "{{ ansible_fqdn }}"
  8. host_groups: "{{ zabbix_host_groups }}"
  9. link_templates: "{{ zabbix_link_templates }}"
  10. status: "{{ zabbix_host_status }}"
  11. state: "{{ zabbix_create_host }}"
  12. proxy: "{{ zabbix_proxy }}"
  13. interfaces: "{{ agent_interfaces }}"
  14. when: zabbix_api_create_hosts
  15. become: no
  16. tags:
  17. - api
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement