Ansible roles that installs wmi_exporter on a Windows system. Optionally with choco or as package.
ansible-galaxy install sbaerlocher.wmi_exporterThe latest version of the wmi_exporter is automatically calculated if 'wmi_exporter_version' no set.
Architecture of the wmi exporter to be installed.
wmi_exporter_architecture: amd64Windows installation parameters for the wmi_exporter. Link
As the --collectors.enabled flag, provide a comma-separated list of enabled collectors
wmi_exporter_enabled_collectors:The IP address to bind to. Defaults to 0.0.0.0
wmi_exporter_listen_addr:The port to bind to. Defaults to 9182.
wmi_exporter_listen_port:The path at which to serve metrics. Defaults to /metrics
wmi_exporter_metrics_path:As the --collector.textfile.directory flag, provide a directory to read text files with metrics from
wmi_exporter_textfile_dir:Allows passing full CLI flags. Defaults to an empty string.
wmi_exporter_extra_flags:Whether to ignore existing choco installation and force 'package' type installation. Defaults to false.
wmi_exporter_force_package: falseIf a proxy is in use this information can be used. By default, proxy settings are taken from the default_* variables, if they are not defined they are ignored.
wmi_exporter_proxy: '{{ default_proxy | default(omit) }}'
wmi_exporter_proxy_password: '{{ default_proxy_password | default(omit) }}'
wmi_exporter_proxy_username: '{{ default_proxy_username | default(omit) }}'
wmi_exporter_validate_certs: '{{ default_validate_certs | default(true) }}'Download directory for the wmi export installations files.
wmi_exporter_download_directory: "{{ ansible_env.TEMP }}\\wmi_exporter"- hosts: all
roles:
- sbaerlocher.wmi_exporterThis project is under the MIT License. See the LICENSE file for the full license text.
(c) 2019, Simon Bärlocher