This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
solutions-tsg-scripts/tasks/uninstall_maat_redis.yml
fumingwei 3b125413ce 1.add role tsg_env_patch
2.delete role which is unuseful
2020-11-17 17:45:40 +06:00

25 lines
613 B
YAML

- 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