]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
cephadm-adopt: refresh the service/daemon list
authorDimitri Savineau <dsavinea@redhat.com>
Wed, 15 Jul 2020 19:15:06 +0000 (15:15 -0400)
committerDimitri Savineau <savineau.dimitri@gmail.com>
Wed, 15 Jul 2020 21:04:59 +0000 (17:04 -0400)
When reporting the orchestrator service/daemon list at the end of the
playbook, we can use the --refresh option otherwise we could have
an outdated output.

Signed-off-by: Dimitri Savineau <dsavinea@redhat.com>
infrastructure-playbooks/cephadm-adopt.yml

index e2f75cc5b08ad20108f4ce727b20b51535e4962d..ed7100e5084a3b06ff5ac522587fd29bb4fa0017 100644 (file)
         name: ceph-defaults
 
     - name: show ceph orchestrator services
-      command: "cephadm shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch ls"
+      command: "cephadm shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch ls --refresh"
       run_once: true
       changed_when: false
       environment:
         CEPHADM_IMAGE: '{{ ceph_docker_registry }}/{{ ceph_docker_image }}:{{ ceph_docker_image_tag }}'
 
     - name: show ceph orchestrator daemons
-      command: "cephadm shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch ps"
+      command: "cephadm shell --fsid {{ fsid }} -- ceph --cluster {{ cluster }} orch ps --refresh"
       run_once: true
       changed_when: false
       environment: