]> git.apps.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: use tasks_from when including ceph-facts
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Apr 2020 13:07:54 +0000 (15:07 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Mon, 6 Apr 2020 16:05:10 +0000 (18:05 +0200)
When setting/unsetting osd flags, we can use `tasks_from` when importing
`ceph-facts` role to save some times given that we only need this role
for setting `container_binary`

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
(cherry picked from commit 6df7887f87e990d61f0de132113d7589117de9c5)

infrastructure-playbooks/rolling_update.yml

index 3966ab403541cf499006a9960076e03df49bb37d..e7a4980d4c546b73f9c66ca27485b5acbec34a05 100644 (file)
         name: ceph-defaults
     - import_role:
         name: ceph-facts
+        tasks_from: container_binary.yml
 
     - name: set osd flags
       command: "{{ container_exec_cmd | default('') }} ceph --cluster {{ cluster }} osd set {{ item }}"
         name: ceph-defaults
     - import_role:
         name: ceph-facts
+        tasks_from: container_binary.yml
 
     - name: set_fact container_exec_cmd_osd
       set_fact: