aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/vmm/handlers/main.yml2
-rw-r--r--roles/vmm/tasks/main.yml7
2 files changed, 4 insertions, 5 deletions
diff --git a/roles/vmm/handlers/main.yml b/roles/vmm/handlers/main.yml
new file mode 100644
index 0000000..e1ce00c
--- /dev/null
+++ b/roles/vmm/handlers/main.yml
@@ -0,0 +1,2 @@
+- name: lint vmm configuration
+ command: "vmd -nf {{ vmm_configuration_file }}"
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:
remember that computers suck.