]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: remove the cephadm script
authorDimitri Savineau <dsavinea@redhat.com>
Fri, 10 Jul 2020 18:45:51 +0000 (14:45 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Mon, 13 Jul 2020 14:17:56 +0000 (10:17 -0400)
At the end of the process when don't need the cephadm script.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
(cherry picked from commit c3bbc6b13cee5e566b277f3146e9e6bc4cec2f52)

infrastructure-playbooks/cephadm-adopt.yml

index 33fd938b4be1cb88d25c2077a387c2575405bab8..69a013dbff4e0038b60e400675baa26957e35b29 100644 (file)
       changed_when: false
       environment:
         CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
+
+- name: remove the cephadm script
+  hosts:
+    - "{{ mon_group_name|default('mons') }}"
+    - "{{ osd_group_name|default('osds') }}"
+    - "{{ mds_group_name|default('mdss') }}"
+    - "{{ rgw_group_name|default('rgws') }}"
+    - "{{ mgr_group_name|default('mgrs') }}"
+    - "{{ rbdmirror_group_name|default('rbdmirrors') }}"
+    - "{{ nfs_group_name|default('nfss') }}"
+    - "{{ iscsi_gw_group_name|default('iscsigws') }}"
+    - "{{ grafana_server_group_name|default('grafana-server') }}"
+  become: true
+  gather_facts: false
+  tasks:
+    - name: remove the cephadm script
+      file:
+        path: /usr/sbin/cephadm
+        state: absent