From 01c8bdc81c1cefa951fd0610d4713c308edd86b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Gon=C3=A7alves?= Date: Thu, 9 Dec 2021 16:34:31 +0000 Subject: roles/vmm: Transform vmm linting to an handler --- roles/vmm/tasks/main.yml | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) (limited to 'roles/vmm/tasks') diff --git a/roles/vmm/tasks/main.yml b/roles/vmm/tasks/main.yml index 26580f2..bb0d501 100644 --- a/roles/vmm/tasks/main.yml +++ b/roles/vmm/tasks/main.yml @@ -36,11 +36,8 @@ owner: 0 group: 0 mode: 0640 - register: result - -- name: lint vmm configuration - command: "vmd -nf {{ vmm_configuration_file }}" - when: result.changed + notify: + - lint vmm configuration - name: restart and enable vmd service: -- cgit v1.2.3