1. update tsg-diagnose uninstall role
2. update install_process.yml
This commit is contained in:
5
install_process.yml
Normal file
5
install_process.yml
Normal file
@@ -0,0 +1,5 @@
|
||||
- hosts: adc_mcn0
|
||||
remote_user: root
|
||||
roles:
|
||||
- docker-env
|
||||
- tsg-diagnose
|
||||
7
roles/tsg-diagnose-uninstall/files/xz_docker.sh
Normal file
7
roles/tsg-diagnose-uninstall/files/xz_docker.sh
Normal file
@@ -0,0 +1,7 @@
|
||||
#!/bin/bash
|
||||
systemctl stop docker &&
|
||||
systemctl disable docker &&
|
||||
#执行不成功就把下面的注释
|
||||
#yum remove docker-ce &&
|
||||
rm -rf /var/lib/docker &&
|
||||
rm -rf $(whereis docker)
|
||||
@@ -1,9 +1,22 @@
|
||||
- name: stop tsg-diagnose
|
||||
- name: stop tsg-diagnose
|
||||
systemd:
|
||||
name: tsg-diagnose
|
||||
state: stopped
|
||||
|
||||
- name: docker-compose down
|
||||
shell: cd /opt/tsg/tsg-diagnose/compose; docker-compose down; docker-compose down
|
||||
|
||||
- name: remove the tsg-diagnose
|
||||
yum:
|
||||
name: tsg-diagnose
|
||||
state: absent
|
||||
|
||||
- name: copy origin uninstall docker shell file
|
||||
copy:
|
||||
src: "{{ role_path }}/files/"
|
||||
dest: /tmp/ansible_deploy/
|
||||
mode: 0755
|
||||
|
||||
- name: rm docker-compose
|
||||
shell: cd /tmp/ansible_deploy/; sh xz_docker.sh;rm /usr/local/bin/docker-compose
|
||||
|
||||
|
||||
@@ -32,6 +32,7 @@
|
||||
name: tsg-diagnose
|
||||
enabled: yes
|
||||
daemon_reload: yes
|
||||
state: started
|
||||
|
||||
- name: "tsg-diagnose init rsync deamon"
|
||||
shell: /bin/sh /opt/tsg/tsg-diagnose/deploy/rsync/init_rsyncd.sh
|
||||
|
||||
Reference in New Issue
Block a user