Restore the task formatting consistency
This commit is contained in:
@@ -1,23 +1,23 @@
|
|||||||
---
|
---
|
||||||
- name: "Configure| Copy Prometheus configuration files"
|
- name: "Configure| Copy Prometheus configuration files"
|
||||||
notify: "(Re)start Prometheus service"
|
notify: "(Re)start Prometheus service"
|
||||||
|
with_fileglob:
|
||||||
|
- "{{ prometheus_config_source_dir }}/*.yml"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ prometheus_config_dir }}/{{ item | basename }}"
|
dest: "{{ prometheus_config_dir }}/{{ item | basename }}"
|
||||||
owner: "{{ prometheus_user }}"
|
owner: "{{ prometheus_user }}"
|
||||||
group: "{{ prometheus_group }}"
|
group: "{{ prometheus_group }}"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
with_fileglob:
|
|
||||||
- "{{ prometheus_config_source_dir }}/*.yml"
|
|
||||||
|
|
||||||
- name: "Configure | Copy alert rules"
|
- name: "Configure | Copy alert rules"
|
||||||
notify: "(Re)start Prometheus service"
|
notify: "(Re)start Prometheus service"
|
||||||
when: prometheus_alertrules_source_dir is defined
|
when: prometheus_alertrules_source_dir is defined
|
||||||
|
with_fileglob:
|
||||||
|
- "{{ prometheus_alertrules_source_dir }}/*.yml"
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ item }}"
|
src: "{{ item }}"
|
||||||
dest: "{{ prometheus_config_dir }}/{{ item | basename }}"
|
dest: "{{ prometheus_config_dir }}/{{ item | basename }}"
|
||||||
owner: "{{ prometheus_user }}"
|
owner: "{{ prometheus_user }}"
|
||||||
group: "{{ prometheus_group }}"
|
group: "{{ prometheus_group }}"
|
||||||
mode: "0660"
|
mode: "0660"
|
||||||
with_fileglob:
|
|
||||||
- "{{ prometheus_alertrules_source_dir }}/*.yml"
|
|
||||||
|
|||||||
@@ -63,6 +63,9 @@
|
|||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: "Install | Move official prometheus and promtool binaries"
|
- name: "Install | Move official prometheus and promtool binaries"
|
||||||
|
with_items:
|
||||||
|
- prometheus
|
||||||
|
- promtool
|
||||||
ansible.builtin.copy:
|
ansible.builtin.copy:
|
||||||
src: "{{ prometheus_dir }}/prometheus-{{ prometheus_version }}.linux-amd64/{{ item }}"
|
src: "{{ prometheus_dir }}/prometheus-{{ prometheus_version }}.linux-amd64/{{ item }}"
|
||||||
dest: "/usr/local/bin/{{ item }}"
|
dest: "/usr/local/bin/{{ item }}"
|
||||||
@@ -70,9 +73,6 @@
|
|||||||
owner: "{{ prometheus_user }}"
|
owner: "{{ prometheus_user }}"
|
||||||
group: "{{ prometheus_group }}"
|
group: "{{ prometheus_group }}"
|
||||||
remote_src: true
|
remote_src: true
|
||||||
with_items:
|
|
||||||
- prometheus
|
|
||||||
- promtool
|
|
||||||
|
|
||||||
- name: "Install | Create a systemd service unit"
|
- name: "Install | Create a systemd service unit"
|
||||||
notify: "(Re)start Prometheus service"
|
notify: "(Re)start Prometheus service"
|
||||||
|
|||||||
Reference in New Issue
Block a user