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