Restore the task formatting consistency

This commit is contained in:
Alexander Gorelyshev
2025-12-28 15:57:59 +04:00
parent bdfab12d58
commit f45f73e6ff
2 changed files with 7 additions and 7 deletions

View File

@@ -1,23 +1,23 @@
---
- name: "Configure| Copy Prometheus configuration files"
notify: "(Re)start Prometheus service"
with_fileglob:
- "{{ prometheus_config_source_dir }}/*.yml"
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ prometheus_config_dir }}/{{ item | basename }}"
owner: "{{ prometheus_user }}"
group: "{{ prometheus_group }}"
mode: "0660"
with_fileglob:
- "{{ prometheus_config_source_dir }}/*.yml"
- name: "Configure | Copy alert rules"
notify: "(Re)start Prometheus service"
when: prometheus_alertrules_source_dir is defined
with_fileglob:
- "{{ prometheus_alertrules_source_dir }}/*.yml"
ansible.builtin.copy:
src: "{{ item }}"
dest: "{{ prometheus_config_dir }}/{{ item | basename }}"
owner: "{{ prometheus_user }}"
group: "{{ prometheus_group }}"
mode: "0660"
with_fileglob:
- "{{ prometheus_alertrules_source_dir }}/*.yml"

View File

@@ -63,6 +63,9 @@
state: absent
- name: "Install | Move official prometheus and promtool binaries"
with_items:
- prometheus
- promtool
ansible.builtin.copy:
src: "{{ prometheus_dir }}/prometheus-{{ prometheus_version }}.linux-amd64/{{ item }}"
dest: "/usr/local/bin/{{ item }}"
@@ -70,9 +73,6 @@
owner: "{{ prometheus_user }}"
group: "{{ prometheus_group }}"
remote_src: true
with_items:
- prometheus
- promtool
- name: "Install | Create a systemd service unit"
notify: "(Re)start Prometheus service"