This role can be used to update a scollector config, e. g. early in the startup process before the actual services runs.
Notice that it will not start the service and expects the program to be installed already.
The target machine must have scollector installed.
There is one main variable that drives this role: _scollector
. It is a map that contains all configuration and settings for this role.
Please see defaults/main.yml
for details.
None.
The general contract of this role is to take the variables map _scollector
from defaults/main.yml
as a template for your configuration and pass that configuration as a parameter to this role.
Including an example of how to use your role (for instance, with variables passed in as parameters) is always nice for users too:
- hosts: servers
var:
SCOLLECTOR:
...
roles:
- { role: update_scollector_config, tags: [ 'scollector' ], _scollector: "{{ SCOLLECTOR }}" }
Please see LICENSE.
Original author is Daniel Schneller as member of the Rheinwerk project.