mirror of
https://github.com/prometheus-community/ansible
synced 2025-02-16 12:48:26 +00:00
Add apply tags for all included tasks files
Signed-off-by: Laurent Indermuehle <laurent.indermuehle@epfl.ch>
This commit is contained in:
parent
11cb754c4e
commit
f0973a0dbc
7 changed files with 85 additions and 7 deletions
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
ansible.builtin.include_tasks: preflight.yml
|
ansible.builtin.include_tasks:
|
||||||
|
file: preflight.yml
|
||||||
|
apply:
|
||||||
|
tags:
|
||||||
|
- alertmanager_install
|
||||||
|
- alertmanager_configure
|
||||||
|
- alertmanager_run
|
||||||
tags:
|
tags:
|
||||||
- alertmanager_install
|
- alertmanager_install
|
||||||
- alertmanager_configure
|
- alertmanager_configure
|
||||||
|
@ -11,6 +17,8 @@
|
||||||
file: install.yml
|
file: install.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- alertmanager_install
|
||||||
tags:
|
tags:
|
||||||
- alertmanager_install
|
- alertmanager_install
|
||||||
|
|
||||||
|
@ -19,6 +27,8 @@
|
||||||
file: selinux.yml
|
file: selinux.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- alertmanager_configure
|
||||||
when: ansible_selinux.status == "enabled"
|
when: ansible_selinux.status == "enabled"
|
||||||
tags:
|
tags:
|
||||||
- alertmanager_configure
|
- alertmanager_configure
|
||||||
|
@ -28,6 +38,8 @@
|
||||||
file: configure.yml
|
file: configure.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- alertmanager_configure
|
||||||
tags:
|
tags:
|
||||||
- alertmanager_configure
|
- alertmanager_configure
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
ansible.builtin.include_tasks: preflight.yml
|
ansible.builtin.include_tasks:
|
||||||
|
file: preflight.yml
|
||||||
|
apply:
|
||||||
|
tags:
|
||||||
|
- blackbox_exporter_install
|
||||||
|
- blackbox_exporter_configure
|
||||||
|
- blackbox_exporter_run
|
||||||
tags:
|
tags:
|
||||||
- blackbox_exporter_install
|
- blackbox_exporter_install
|
||||||
- blackbox_exporter_configure
|
- blackbox_exporter_configure
|
||||||
|
@ -11,6 +17,8 @@
|
||||||
file: install.yml
|
file: install.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- blackbox_exporter_install
|
||||||
tags:
|
tags:
|
||||||
- blackbox_exporter_install
|
- blackbox_exporter_install
|
||||||
|
|
||||||
|
@ -19,6 +27,8 @@
|
||||||
file: configure.yml
|
file: configure.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- blackbox_exporter_configure
|
||||||
tags:
|
tags:
|
||||||
- blackbox_exporter_configure
|
- blackbox_exporter_configure
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
ansible.builtin.include_tasks: preflight.yml
|
ansible.builtin.include_tasks:
|
||||||
|
file: preflight.yml
|
||||||
|
apply:
|
||||||
|
tags:
|
||||||
|
- mysqld_exporter_install
|
||||||
|
- mysqld_exporter_configure
|
||||||
|
- mysqld_exporter_run
|
||||||
tags:
|
tags:
|
||||||
- mysqld_exporter_install
|
- mysqld_exporter_install
|
||||||
- mysqld_exporter_configure
|
- mysqld_exporter_configure
|
||||||
|
@ -11,6 +17,8 @@
|
||||||
file: install.yml
|
file: install.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- mysqld_exporter_install
|
||||||
when:
|
when:
|
||||||
( not __mysqld_exporter_is_installed.stat.exists ) or
|
( not __mysqld_exporter_is_installed.stat.exists ) or
|
||||||
( (__mysqld_exporter_current_version_output.stderr_lines | length > 0)
|
( (__mysqld_exporter_current_version_output.stderr_lines | length > 0)
|
||||||
|
@ -26,6 +34,8 @@
|
||||||
file: selinux.yml
|
file: selinux.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- mysqld_exporter_configure
|
||||||
when: ansible_selinux.status == "enabled"
|
when: ansible_selinux.status == "enabled"
|
||||||
tags:
|
tags:
|
||||||
- mysqld_exporter_configure
|
- mysqld_exporter_configure
|
||||||
|
@ -35,6 +45,8 @@
|
||||||
file: configure.yml
|
file: configure.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- mysqld_exporter_configure
|
||||||
tags:
|
tags:
|
||||||
- mysqld_exporter_configure
|
- mysqld_exporter_configure
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
ansible.builtin.include_tasks: preflight.yml
|
ansible.builtin.include_tasks:
|
||||||
|
file: preflight.yml
|
||||||
|
apply:
|
||||||
|
tags:
|
||||||
|
- node_exporter_install
|
||||||
|
- node_exporter_configure
|
||||||
|
- node_exporter_run
|
||||||
tags:
|
tags:
|
||||||
- node_exporter_install
|
- node_exporter_install
|
||||||
- node_exporter_configure
|
- node_exporter_configure
|
||||||
|
@ -11,6 +17,8 @@
|
||||||
file: install.yml
|
file: install.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- node_exporter_install
|
||||||
when:
|
when:
|
||||||
( not __node_exporter_is_installed.stat.exists ) or
|
( not __node_exporter_is_installed.stat.exists ) or
|
||||||
( (__node_exporter_current_version_output.stderr_lines | length > 0)
|
( (__node_exporter_current_version_output.stderr_lines | length > 0)
|
||||||
|
@ -26,6 +34,8 @@
|
||||||
file: selinux.yml
|
file: selinux.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- node_exporter_configure
|
||||||
when: ansible_selinux.status == "enabled"
|
when: ansible_selinux.status == "enabled"
|
||||||
tags:
|
tags:
|
||||||
- node_exporter_configure
|
- node_exporter_configure
|
||||||
|
@ -35,6 +45,8 @@
|
||||||
file: configure.yml
|
file: configure.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- node_exporter_configure
|
||||||
tags:
|
tags:
|
||||||
- node_exporter_configure
|
- node_exporter_configure
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
ansible.builtin.include_tasks: preflight.yml
|
ansible.builtin.include_tasks:
|
||||||
|
file: preflight.yml
|
||||||
|
apply:
|
||||||
|
tags:
|
||||||
|
- prometheus_configure
|
||||||
|
- prometheus_install
|
||||||
|
- prometheus_run
|
||||||
tags:
|
tags:
|
||||||
- prometheus_configure
|
- prometheus_configure
|
||||||
- prometheus_install
|
- prometheus_install
|
||||||
|
@ -11,6 +17,8 @@
|
||||||
file: install.yml
|
file: install.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- prometheus_install
|
||||||
tags:
|
tags:
|
||||||
- prometheus_install
|
- prometheus_install
|
||||||
|
|
||||||
|
@ -19,6 +27,8 @@
|
||||||
file: configure.yml
|
file: configure.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- prometheus_configure
|
||||||
tags:
|
tags:
|
||||||
- prometheus_configure
|
- prometheus_configure
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
ansible.builtin.include_tasks: preflight.yml
|
ansible.builtin.include_tasks:
|
||||||
|
file: preflight.yml
|
||||||
|
apply:
|
||||||
|
tags:
|
||||||
|
- snmp_exporter_install
|
||||||
|
- snmp_exporter_configure
|
||||||
|
- snmp_exporter_run
|
||||||
tags:
|
tags:
|
||||||
- snmp_exporter_install
|
- snmp_exporter_install
|
||||||
- snmp_exporter_configure
|
- snmp_exporter_configure
|
||||||
|
@ -11,6 +17,8 @@
|
||||||
file: install.yml
|
file: install.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- snmp_exporter_install
|
||||||
tags:
|
tags:
|
||||||
- snmp_exporter_install
|
- snmp_exporter_install
|
||||||
|
|
||||||
|
@ -19,6 +27,8 @@
|
||||||
file: configure.yml
|
file: configure.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- snmp_exporter_configure
|
||||||
tags:
|
tags:
|
||||||
- snmp_exporter_configure
|
- snmp_exporter_configure
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
---
|
---
|
||||||
- name: Preflight
|
- name: Preflight
|
||||||
ansible.builtin.include_tasks: preflight.yml
|
ansible.builtin.include_tasks:
|
||||||
|
file: preflight.yml
|
||||||
|
apply:
|
||||||
|
tags:
|
||||||
|
- systemd_exporter_install
|
||||||
|
- systemd_exporter_configure
|
||||||
|
- systemd_exporter_run
|
||||||
tags:
|
tags:
|
||||||
- systemd_exporter_install
|
- systemd_exporter_install
|
||||||
- systemd_exporter_configure
|
- systemd_exporter_configure
|
||||||
|
@ -11,6 +17,8 @@
|
||||||
file: install.yml
|
file: install.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- systemd_exporter_install
|
||||||
when:
|
when:
|
||||||
( not __systemd_exporter_is_installed.stat.exists ) or
|
( not __systemd_exporter_is_installed.stat.exists ) or
|
||||||
( __systemd_exporter_current_version_output.stderr_lines[0].split(" ")[2] != systemd_exporter_version ) or
|
( __systemd_exporter_current_version_output.stderr_lines[0].split(" ")[2] != systemd_exporter_version ) or
|
||||||
|
@ -23,6 +31,8 @@
|
||||||
file: selinux.yml
|
file: selinux.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- systemd_exporter_configure
|
||||||
when: ansible_selinux.status == "enabled"
|
when: ansible_selinux.status == "enabled"
|
||||||
tags:
|
tags:
|
||||||
- systemd_exporter_configure
|
- systemd_exporter_configure
|
||||||
|
@ -32,6 +42,8 @@
|
||||||
file: configure.yml
|
file: configure.yml
|
||||||
apply:
|
apply:
|
||||||
become: true
|
become: true
|
||||||
|
tags:
|
||||||
|
- systemd_exporter_configure
|
||||||
tags:
|
tags:
|
||||||
- systemd_exporter_configure
|
- systemd_exporter_configure
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue