]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ansible.git/commitdiff
update: use tasks_from when including ceph-facts v4.0.26
authorGuillaume Abrioux <gabrioux@redhat.com>
Fri, 3 Apr 2020 13:07:54 +0000 (15:07 +0200)
committerGuillaume Abrioux <gabrioux@redhat.com>
Thu, 23 Jul 2020 15:26:04 +0000 (17:26 +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 d66b698be2bae47ab20650dada8e66307a060962)

infrastructure-playbooks/rolling_update.yml

index e96fbb6456e61f2a177731e3ad6dd951d802acd3..c61710c62b1e5c3a525227b14e7ad53ee42de1cb 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: