Added a template file for the rc-service of f2b node-exporter on alpine
Added a template file for the rc-service of f2b node-exporter on alpine.
So, I added a service file template, which works, but only with some manual tweak, with the following issue:
- name: prometheus-exporter template
template:
dest: "/etc/conf.d/{{prometheus_exporter.service}}"
src: "{{prometheus_exporter.name}}.j2"
register: prometheus_exporter_config
when:
- prometheus_exporter.service is defined
That part creates the service file in /etc/conf.d but in order to be seen (and started/stopped) by the rc-service on alpine I had to copy the same file to /etc/init.d and change the permission with a +x. Now it's working on chiaki with the full run of the playbook, and I see the scrapes on grafana too.