forked from MoOyeg/Rootless-Podman-For-Prometheus-Grafana
-
Notifications
You must be signed in to change notification settings - Fork 0
/
uninstall.yaml
34 lines (32 loc) · 1012 Bytes
/
uninstall.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
---
- name: Node Exporter Removal
hosts: nodexporter
tasks:
- name: Node Exporter Removal
debug:
msg: "Node Exporter Installation will confirm users, resources and start installation"
tags:
- nodexporter-uninstall
- name: Node Exporter User Management
vars:
user_information: node_exporter
role_usage: delete
user_name: "{{ nodexporter_user_name }}"
group_name: "{{ nodexporter_user_name }}"
uid: "{{ nodexporter_podman_user }}"
gid: "{{ nodexporter_podman_user }}"
user_create: "{{ nodexporter_user_create }}"
group_create: "{{ nodexporter_user_create }}"
include_role:
name: user-mgmt
tags:
- nodexporter-uninstall
- nodexporter-usermgmt
- name: Podman Delete Node Exporter Container
vars:
role_usage: delete
include_role:
name: podman-node-exporter
tags:
- nodexporter-uninstall
- nodexporter-podman-delete