remove unicode invisable space char

This commit is contained in:
Ludovic Cartier 2022-11-14 10:58:21 +01:00
parent 22c2c39818
commit c37538a333
6 changed files with 12 additions and 12 deletions

View File

@ -14,14 +14,14 @@
register: stat_result register: stat_result
tags: [ 'prometheus_{{ exporter }}' ] tags: [ 'prometheus_{{ exporter }}' ]
- name: '{{ exporter }} exporter | stop old version' - name: '{{ exporter }} exporter | stop old version'
systemd: systemd:
name: prometheus-{{ exporter }}-exporter.service name: prometheus-{{ exporter }}-exporter.service
state: stopped state: stopped
when: exporter_upgrade == "yes" when: exporter_upgrade == "yes"
tags: [ 'prometheus_{{ exporter }}' ] tags: [ 'prometheus_{{ exporter }}' ]
- name: '{{ exporter }} exporter | remove old version' - name: '{{ exporter }} exporter | remove old version'
file: file:
path: /usr/local/bin/prometheus-{{ exporter }}-exporter path: /usr/local/bin/prometheus-{{ exporter }}-exporter
state: absent state: absent
@ -79,7 +79,7 @@
- name: '{{ exporter }} exporter | systemd | copy unit file' - name: '{{ exporter }} exporter | systemd | copy unit file'
template: template:
src: systemd/prometheus-{{ exporter }}-exporter.service.j2 src: systemd/prometheus-{{ exporter }}-exporter.service.j2
dest: /etc/systemd/system/prometheus-{{ exporter }}-exporter.service dest: /etc/systemd/system/prometheus-{{ exporter }}-exporter.service
owner: root owner: root
group: root group: root

View File

@ -11,7 +11,7 @@
group: root group: root
mode: 0755 mode: 0755
notify: notify:
- 'prometheus | mongodb exporter | restart service' - 'prometheus | mongodb exporter | restart service'
when: when:
- prometheus_mongodb_exporter_latest_version.stdout < '0.2' - prometheus_mongodb_exporter_latest_version.stdout < '0.2'
@ -23,4 +23,4 @@
group: root group: root
mode: 0600 mode: 0600
notify: notify:
- 'prometheus | mongodb exporter | restart service' - 'prometheus | mongodb exporter | restart service'

View File

@ -13,4 +13,4 @@
- prometheus_mysqld_exporter_user is defined - prometheus_mysqld_exporter_user is defined
register: prometheus_mysqld_exporter_configuration register: prometheus_mysqld_exporter_configuration
notify: notify:
- 'prometheus | mysqld exporter | restart service' - 'prometheus | mysqld exporter | restart service'

View File

@ -10,4 +10,4 @@
group: root group: root
mode: 0600 mode: 0600
notify: notify:
- 'prometheus | phpfpm exporter | restart service' - 'prometheus | phpfpm exporter | restart service'

View File

@ -11,4 +11,4 @@
mode: 0600 mode: 0600
register: prometheus_postgres_exporter_configuration register: prometheus_postgres_exporter_configuration
notify: notify:
- 'prometheus | postgres exporter | restart service' - 'prometheus | postgres exporter | restart service'

View File

@ -1,5 +1,5 @@
--- ---
- name: 'prometheus | server | assert | check mandatory vars are defined' - name: 'prometheus | server | assert | check mandatory vars are defined'
assert: assert:
that: that:
- "prometheus_server_monitor is defined" - "prometheus_server_monitor is defined"
@ -12,7 +12,7 @@
tags: tags:
- prometheus - prometheus
- name: 'prometheus | server | create docker volume data' - name: 'prometheus | server | create docker volume data'
docker_volume: docker_volume:
name: prometheus_data name: prometheus_data
register: register_docker_volume_prometheus__prometheus_data register: register_docker_volume_prometheus__prometheus_data
@ -37,7 +37,7 @@
tags: tags:
- prometheus - prometheus
notify: notify:
- 'prometheus | server | restart container' - 'prometheus | server | restart container'
- name: 'prometheus | server | deploy container' - name: 'prometheus | server | deploy container'
docker_container: docker_container:
@ -67,4 +67,4 @@
tags: tags:
- prometheus - prometheus
notify: notify:
- 'prometheus | server | restart container' - 'prometheus | server | restart container'