community.zabbix.zabbix_valuemap – Create/update/delete Zabbix value maps
Note
This plugin is part of the community.zabbix collection (version 1.5.1).
You might already have this collection installed if you are using the ansible
package.
It is not included in ansible-core
.
To check whether it is installed, run ansible-galaxy collection list
.
To install it, use: ansible-galaxy collection install community.zabbix
.
To use it in a playbook, specify: community.zabbix.zabbix_valuemap
.
Requirements
The below requirements are needed on the host that executes this module.
zabbix-api >= 0.5.4
Parameters
Parameter |
Comments |
---|---|
Basic Auth password |
|
Basic Auth login |
|
Zabbix user password. If not set the environment variable |
|
Zabbix user name. If not set the environment variable |
|
List of value mappings for the value map. Required when state=present. |
|
Value to which the original value is mapped to. |
|
Original value. |
|
Name of the value map. |
|
URL of Zabbix server, with protocol (http or https). If not set the environment variable |
|
State of the value map. On On Choices:
|
|
The timeout of API request (seconds). Default: 10 |
|
If set to False, SSL certificates will not be validated. This should only be used on personally controlled sites using self-signed certificates. If not set the environment variable Choices:
|
Notes
Note
If you use login_password=zabbix, the word “zabbix” is replaced by “****” in all module output, because login_password uses
no_log
. See this FAQ for more information.
Examples
- name: Create a value map
local_action:
module: community.zabbix.zabbix_valuemap
server_url: http://zabbix.example.com
login_user: username
login_password: password
name: Numbers
mappings:
- value: 1
map_to: one
- value: 2
map_to: two
state: present
Authors
Ruben Tsirunyan (@rubentsirunyan)