summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--roles/base/tasks/watchdog.yml4
1 files changed, 3 insertions, 1 deletions
diff --git a/roles/base/tasks/watchdog.yml b/roles/base/tasks/watchdog.yml
index 1751f964c..c94bcd9ab 100644
--- a/roles/base/tasks/watchdog.yml
+++ b/roles/base/tasks/watchdog.yml
@@ -1,6 +1,8 @@
- name: See if theres a watchdog device
stat: path=/dev/watchdog
when: ansible_virtualization_role == 'guest'
+ always_run: true
+ failed_when: no
register: watchdog_dev
- block:
@@ -31,4 +33,4 @@
- service
- watchdog
- base
- when: ansible_virtualization_role == 'guest' and watchdog_dev.stat.exists is defined
+ when: watchdog_dev|succeeded and ansible_virtualization_role == 'guest' and watchdog_dev.stat.exists