Fix lint errors
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
2c55153c74
commit
46a65e87df
2 changed files with 93 additions and 93 deletions
|
|
@ -4,20 +4,20 @@
|
||||||
- name: monitoring setup
|
- name: monitoring setup
|
||||||
block:
|
block:
|
||||||
- name: Include vars files list
|
- name: Include vars files list
|
||||||
include_vars: "{{ item }}"
|
ansible.builtin.include_vars: "{{ item }}"
|
||||||
with_items:
|
with_items:
|
||||||
- "prometheus_files_list.yml"
|
- "prometheus_files_list.yml"
|
||||||
- "grafana_files_list.yml"
|
- "grafana_files_list.yml"
|
||||||
|
|
||||||
- name: Find state of monitoring stack
|
- name: Find state of monitoring stack
|
||||||
set_fact:
|
ansible.builtin.set_fact:
|
||||||
monitoring_state: absent
|
monitoring_state: absent
|
||||||
when:
|
when:
|
||||||
- prometheus_state == "absent"
|
- prometheus_state == "absent"
|
||||||
- grafana_state == "absent"
|
- grafana_state == "absent"
|
||||||
|
|
||||||
- name: namespace
|
- name: namespace
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "{{ monitoring_state }}"
|
state: "{{ monitoring_state }}"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
name: "{{ monitoring_namespace }}"
|
name: "{{ monitoring_namespace }}"
|
||||||
|
|
@ -27,7 +27,7 @@
|
||||||
- monitoring_state == "present"
|
- monitoring_state == "present"
|
||||||
|
|
||||||
# - name: Create a Secret object for basic authentification
|
# - name: Create a Secret object for basic authentification
|
||||||
# k8s:
|
# kubernetes.core.k8s:
|
||||||
# state: "{{ prometheus_state }}"
|
# state: "{{ prometheus_state }}"
|
||||||
# context: "{{ my_context }}"
|
# context: "{{ my_context }}"
|
||||||
# definition:
|
# definition:
|
||||||
|
|
@ -44,7 +44,7 @@
|
||||||
# tags: prom
|
# tags: prom
|
||||||
|
|
||||||
- name: Install Prometheus files
|
- name: Install Prometheus files
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "present"
|
state: "present"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
merge_type: merge
|
merge_type: merge
|
||||||
|
|
@ -56,7 +56,7 @@
|
||||||
tags: prometheus
|
tags: prometheus
|
||||||
|
|
||||||
- name: UnInstall Prometheus files
|
- name: UnInstall Prometheus files
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "absent"
|
state: "absent"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
merge_type: merge
|
merge_type: merge
|
||||||
|
|
@ -68,7 +68,7 @@
|
||||||
tags: prometheus
|
tags: prometheus
|
||||||
|
|
||||||
- name: Install Grafana files
|
- name: Install Grafana files
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "present"
|
state: "present"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
merge_type: merge
|
merge_type: merge
|
||||||
|
|
@ -80,7 +80,7 @@
|
||||||
tags: grafana
|
tags: grafana
|
||||||
|
|
||||||
- name: UnInstall Grafana files
|
- name: UnInstall Grafana files
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "absent"
|
state: "absent"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
merge_type: merge
|
merge_type: merge
|
||||||
|
|
@ -92,7 +92,7 @@
|
||||||
tags: grafana
|
tags: grafana
|
||||||
|
|
||||||
- name: namespace
|
- name: namespace
|
||||||
k8s:
|
kubernetes.core.k8s:
|
||||||
state: "{{ monitoring_state }}"
|
state: "{{ monitoring_state }}"
|
||||||
context: "{{ my_context }}"
|
context: "{{ my_context }}"
|
||||||
name: "{{ monitoring_namespace }}"
|
name: "{{ monitoring_namespace }}"
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue