From 5479f08c80bc7e0762fe81b183662d57dea5d50a Mon Sep 17 00:00:00 2001 From: Kevin Fenzi Date: Sun, 10 Apr 2016 16:33:32 +0000 Subject: [PATCH] Try and fix watchdog so it doesn't try and install everywhere breaking everything. ;) --- roles/base/tasks/watchdog.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/roles/base/tasks/watchdog.yml b/roles/base/tasks/watchdog.yml index 1751f964c7..c94bcd9abb 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