From 05887ad3e045200c42cd3dfbdc36a2d420c18baa Mon Sep 17 00:00:00 2001 From: exu Date: Thu, 10 Oct 2024 20:22:19 +0200 Subject: [PATCH] Conditional vnstat --- roles/config/tasks/main.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/config/tasks/main.yml b/roles/config/tasks/main.yml index b0708748..a8cfdd0f 100644 --- a/roles/config/tasks/main.yml +++ b/roles/config/tasks/main.yml @@ -142,4 +142,5 @@ name: vnstat state: "started" enabled: true + when: ('vnstat' in ansible_facts.packages) become: true