From 639720fd1009a96d2034f4597ff993b17b556a39 Mon Sep 17 00:00:00 2001 From: Patrick Hasler Date: Thu, 18 Jul 2024 14:08:34 +0200 Subject: [PATCH] chore: small syntax changes tasks/main.yml --- tasks/main.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tasks/main.yml b/tasks/main.yml index 6a7edb4..e56fb9f 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -106,12 +106,14 @@ loop: "{{ bareos_sd_s3_profiles }}" loop_control: label: "{{ item.name }}" + when: + - bareos_sd_s3_profiles | length > 0 notify: - Check configuration - Restart bareos-sd -- name: Start bareos-sd +- name: Start and enable bareos-sd service ansible.builtin.service: name: bareos-sd state: started - enabled: yes + enabled: true