You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Adding the ability to create custom headers to the httpapi plugin.
ISSUE TYPE
Feature Idea
COMPONENT NAME
httpapi-plugin
ADDITIONAL INFORMATION
I would like to send a custom header with each request to the zabbix api. Such headers are required to authenticate the request to the zabbix instance.
- name: Create maintenance for hostvars:
ansible_become: falseansible_network_os: community.zabbix.zabbixansible_connection: httpapiansible_httpapi_port: 443ansible_httpapi_use_ssl: trueansible_httpapi_validate_certs: true#begin new valueansible_httpapi_headers:
- name: AccessTokenvalue: SomeAccessToken
- name: SecretTokenvalue: SuperSecretToken#end new valueansible_user: "{{ zabbix_maintenance_user_name }}"ansible_host: "{{ zabbix_host_url }}"ansible_httpapi_pass: "{{ zabbix_maintenance_user_password }}"community.zabbix.zabbix_maintenance:
name: "Update of {{ stack_name }} - {{ ansible_hostname }}"host_name: "{{ ansible_hostname }}"state: presentminutes: "{{ zabbix_maintenance_duration | default(15) }}"# This call will fail on the first execution of a new server. So we ignore any errorsignore_errors: true
The text was updated successfully, but these errors were encountered:
SUMMARY
Adding the ability to create custom headers to the httpapi plugin.
ISSUE TYPE
COMPONENT NAME
httpapi-plugin
ADDITIONAL INFORMATION
I would like to send a custom header with each request to the zabbix api. Such headers are required to authenticate the request to the zabbix instance.
The text was updated successfully, but these errors were encountered: