1.add role tsg_env_patch

2.delete role which is unuseful
This commit is contained in:
fumingwei
2020-11-17 17:45:40 +06:00
parent cc7155ec1a
commit 3b125413ce
21 changed files with 72 additions and 113 deletions

View File

@@ -0,0 +1,24 @@
- hosts: host_uninstall_redis
remote_user: root
tasks:
- name: "maat-redis-uninstall: stop maat-redis service"
systemd:
name: "{{ item }}"
state: stopped
with_items:
- maat-redis.service
- redis.service
- name: "maat-redis-uninstall: rm maat-redis.conf and maat-redis.service"
file:
path: "{{ item }}"
state: absent
with_items:
- /etc/maat-redis.conf
- /usr/lib/systemd/system/maat-redis.service
- name: remove redis
yum:
name: redis
state: absent