mirror of https://github.com/ceph/ceph-ansible.git
Merge pull request #1464 from ceph/purge-ceph-target
purge-cluster: remove unneeded taskspull/1458/head
commit
78b680d35c
|
@ -423,18 +423,6 @@
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
|
|
||||||
- name: stop ceph.target with systemd
|
|
||||||
service:
|
|
||||||
name: ceph.target
|
|
||||||
state: stopped
|
|
||||||
enabled: no
|
|
||||||
when: ansible_service_mgr == 'systemd'
|
|
||||||
|
|
||||||
- name: check for anything running ceph
|
|
||||||
shell: "ps awux | grep -- /usr/bin/[c]eph-"
|
|
||||||
register: check_for_running_ceph
|
|
||||||
failed_when: check_for_running_ceph.rc == 0
|
|
||||||
|
|
||||||
- name: purge ceph packages with yum
|
- name: purge ceph packages with yum
|
||||||
yum:
|
yum:
|
||||||
name: "{{ item }}"
|
name: "{{ item }}"
|
||||||
|
@ -493,19 +481,6 @@
|
||||||
path: /var/log/ceph
|
path: /var/log/ceph
|
||||||
state: absent
|
state: absent
|
||||||
|
|
||||||
- name: remove from sysv
|
|
||||||
shell: "update-rc.d -f ceph remove"
|
|
||||||
when: ansible_service_mgr == 'sysvinit'
|
|
||||||
|
|
||||||
- name: remove upstart and sysv files
|
|
||||||
shell: "find /etc -name '*ceph*' -delete"
|
|
||||||
when: ansible_service_mgr == 'upstart'
|
|
||||||
|
|
||||||
- name: remove upstart and apt logs and cache
|
|
||||||
shell: "find /var -name '*ceph*' -delete"
|
|
||||||
failed_when: false
|
|
||||||
when: ansible_distribution == 'Ubuntu'
|
|
||||||
|
|
||||||
- name: request data removal
|
- name: request data removal
|
||||||
local_action: shell echo requesting data removal
|
local_action: shell echo requesting data removal
|
||||||
become: false
|
become: false
|
||||||
|
@ -531,6 +506,11 @@
|
||||||
state: absent
|
state: absent
|
||||||
when: ansible_os_family == 'RedHat'
|
when: ansible_os_family == 'RedHat'
|
||||||
|
|
||||||
|
- name: check for anything running ceph
|
||||||
|
command: "ps -u ceph -U ceph"
|
||||||
|
register: check_for_running_ceph
|
||||||
|
failed_when: check_for_running_ceph.rc == 0
|
||||||
|
|
||||||
|
|
||||||
- name: purge fetch directory
|
- name: purge fetch directory
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue