# Role: restic_exporter

## Description

Install and configure restic-exporter for Prometheus.

https://github.com/ngosang/restic-exporter

## Usage

Using in a playbook:

```yaml
- name: Play
  hosts:
    - all
  roles:
    - samuliy.ansible.restic_exporter
  vars:
    ...
```

### Vars

`restic_exporter_install_dir`:

Directory to install restic-exporter to.

`restic_exporter_user`:

User to run restic-exporter as.

`restic_exporter_git_repo`:

URL to Git repo for restic-exporter.

`restic_exporter_git_version`:

Version to pull from git.

`restic_exporter_git_install`:

Install restic-exporter from git.

`restic_exporter_git_update`:

Update restic-exporter from git.

`restic_exporter_pip_install`:

Install restic-exporter dependencies from pip.

`restic_exporter_pip_update`:

Update restic-exporter dependencies with pip.

`restic_exporter_service_instances`:

Service instances to install for restic-exporter.

The variable is a list of items with fields:

- 'name'
- 'restic_repository'
- 'restic_password'
- 'restic_password_file'
- 'restic_password_command'
- 'restic_aws_access_key_id'
- 'restic_aws_secret_access_key'
- 'restic_aws_default_region'
- 'refresh_interval'
- 'listen_port'
- 'http_proxy'
- 'https_proxy'
