Skip to content

Commit

Permalink
Reduce the 2 blocks to 1 cf. Seb's comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pwalczysko committed Jan 18, 2024
1 parent 456ccc6 commit c758ca2
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,27 +42,13 @@
- name: omero prometheus exporter | configure service
become: true
template:
dest: /etc/sysconfig/prometheus-omero-exporter
dest: "{{ systemd_prometheus_omero_exporter_env_file_path }}"
src: sysconfig-prometheus-omero-exporter.j2
owner: "{{ omero_prometheus_exporter_system_user }}"
group: root
mode: 0440
notify:
- restart prometheus-omero-exporter
when: ansible_os_family == "RedHat"


- name: omero prometheus exporter | configure service
become: true
template:
dest: /etc/prometheus-omero-exporter
src: sysconfig-prometheus-omero-exporter.j2
owner: "{{ omero_prometheus_exporter_system_user }}"
group: root
mode: 0440
notify:
- restart prometheus-omero-exporter
when: ansible_os_family == "Debian"

- name: omero prometheus exporter | install service
become: true
Expand Down

0 comments on commit c758ca2

Please sign in to comment.