From f918ba48db6813221065dccd490761731c0c1412 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Wed, 18 May 2022 13:47:43 +0200 Subject: [PATCH] Allow service to be absent Currently we assume that there must be a services that needs to be restarted. At same time it's not always the case, for example when ceph_client role is used to prepare host for cephfs mount. Change-Id: I6a5cf134a0117e6d8c12a339713ca425a31b907b --- vars/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vars/main.yml b/vars/main.yml index 11722f4..df34b7c 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -70,7 +70,7 @@ ceph_client_filtered_packages: |- ceph_client_filtered_services: |- {% set services = [] %} {% for comp in (ceph_components + ceph_extra_components) %} - {% if comp.component in group_names %} + {% if comp.component in group_names and 'service' in comp %} {% set _ = services.append(comp.service) %} {% endif %} {% endfor %}