From c449573e7246b9f41c0eb4065040db0299027185 Mon Sep 17 00:00:00 2001 From: Dmitriy Rabotyagov Date: Fri, 15 May 2020 14:27:59 +0300 Subject: [PATCH] Fix systemd-resolved config conditional Variable systemd_resolved is supposed to be a dict. When bool filter is applied to dict it returns false despite dict have any values or not. So we need to change that logic to verify if we have empty dict or not. Change-Id: I17d5bebe4bd1c133798161f27e08bd2989848178 --- tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tasks/main.yml b/tasks/main.yml index 5105d16..275578a 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -54,7 +54,7 @@ group: "root" mode: "0644" when: - - systemd_resolved | bool + - systemd_resolved | length > 0 notify: - Restart systemd-resolved tags: