Skip to content

Ansible roles that wmi exporter installs on a Windows system. Optionally with choco or as package.

Notifications You must be signed in to change notification settings

sbaerlocher/ansible.wmi_exporter

Repository files navigation

Ansible Role: wmi_exporter

Build Status license Ansible Galaxy Ansible Role

Description

Ansible roles that installs wmi_exporter on a Windows system. Optionally with choco or as package.

Installation

ansible-galaxy install sbaerlocher.wmi_exporter

Requirements

Role Variables

Version

The latest version of the wmi_exporter is automatically calculated if 'wmi_exporter_version' no set.

Architecture

Architecture of the wmi exporter to be installed.

wmi_exporter_architecture: amd64

install Parameters

Windows 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: false

Global Variable

Proxy

If 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) }}'

Package

Download directory for the wmi export installations files.

wmi_exporter_download_directory: "{{ ansible_env.TEMP }}\\wmi_exporter"

Dependencies

Example Playbook

- hosts: all
  roles:
    - sbaerlocher.wmi_exporter

Author

License

This project is under the MIT License. See the LICENSE file for the full license text.

Copyright

(c) 2019, Simon Bärlocher

About

Ansible roles that wmi exporter installs on a Windows system. Optionally with choco or as package.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •