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
This commit is contained in:
Dmitriy Rabotyagov 2020-05-15 14:27:59 +03:00
parent d2ffdb7bc3
commit c449573e72

View File

@ -54,7 +54,7 @@
group: "root"
mode: "0644"
when:
- systemd_resolved | bool
- systemd_resolved | length > 0
notify:
- Restart systemd-resolved
tags: