Skip to content

Instantly share code, notes, and snippets.

Created December 22, 2017 10:03
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 anonymous/8277ac3a3196ec3b2a141c473b565058 to your computer and use it in GitHub Desktop.
Save anonymous/8277ac3a3196ec3b2a141c473b565058 to your computer and use it in GitHub Desktop.
Get_host to see if host is present:
module.run:
- name: zabbix.host_get
- kwargs: {
_connection_user: 'user',
_connection_password: 'secret',
_connection_url: 'https://example.com/zabbix/api_jsonrpc.php',
}
- host: 'ahost'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment