From 02e7468b4a71d56394e56da8a2f74fbd28093e2c Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Fri, 3 Apr 2020 15:07:54 +0200 Subject: [PATCH] update: use tasks_from when including ceph-facts 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 (cherry picked from commit d66b698be2bae47ab20650dada8e66307a060962) --- infrastructure-playbooks/rolling_update.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/infrastructure-playbooks/rolling_update.yml b/infrastructure-playbooks/rolling_update.yml index e96fbb645..c61710c62 100644 --- a/infrastructure-playbooks/rolling_update.yml +++ b/infrastructure-playbooks/rolling_update.yml @@ -365,6 +365,7 @@ 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 }}" @@ -503,6 +504,7 @@ name: ceph-defaults - import_role: name: ceph-facts + tasks_from: container_binary.yml - name: set_fact container_exec_cmd_osd set_fact: -- 2.39.5