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
|
||||
block:
|
||||
- name: Include vars files list
|
||||
include_vars: "{{ item }}"
|
||||
ansible.builtin.include_vars: "{{ item }}"
|
||||
with_items:
|
||||
- "prometheus_files_list.yml"
|
||||
- "grafana_files_list.yml"
|
||||
|
||||
- name: Find state of monitoring stack
|
||||
set_fact:
|
||||
ansible.builtin.set_fact:
|
||||
monitoring_state: absent
|
||||
when:
|
||||
- prometheus_state == "absent"
|
||||
- grafana_state == "absent"
|
||||
|
||||
- name: namespace
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "{{ monitoring_state }}"
|
||||
context: "{{ my_context }}"
|
||||
name: "{{ monitoring_namespace }}"
|
||||
|
|
@ -27,7 +27,7 @@
|
|||
- monitoring_state == "present"
|
||||
|
||||
# - name: Create a Secret object for basic authentification
|
||||
# k8s:
|
||||
# kubernetes.core.k8s:
|
||||
# state: "{{ prometheus_state }}"
|
||||
# context: "{{ my_context }}"
|
||||
# definition:
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
# tags: prom
|
||||
|
||||
- name: Install Prometheus files
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "present"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
@ -56,7 +56,7 @@
|
|||
tags: prometheus
|
||||
|
||||
- name: UnInstall Prometheus files
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "absent"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
@ -68,7 +68,7 @@
|
|||
tags: prometheus
|
||||
|
||||
- name: Install Grafana files
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "present"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
@ -80,7 +80,7 @@
|
|||
tags: grafana
|
||||
|
||||
- name: UnInstall Grafana files
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "absent"
|
||||
context: "{{ my_context }}"
|
||||
merge_type: merge
|
||||
|
|
@ -92,7 +92,7 @@
|
|||
tags: grafana
|
||||
|
||||
- name: namespace
|
||||
k8s:
|
||||
kubernetes.core.k8s:
|
||||
state: "{{ monitoring_state }}"
|
||||
context: "{{ my_context }}"
|
||||
name: "{{ monitoring_namespace }}"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue