diff options
author | Kevin Fenzi <kevin@scrye.com> | 2016-04-10 16:33:32 +0000 |
---|---|---|
committer | Kevin Fenzi <kevin@scrye.com> | 2016-04-10 16:33:32 +0000 |
commit | 5479f08c80bc7e0762fe81b183662d57dea5d50a (patch) | |
tree | 95483415cb9e24b61f6f51a31afaa1d2fa3d061f | |
parent | 833269b1515b296480de3f58705430733d87e7bf (diff) | |
download | ansible-5479f08c80bc7e0762fe81b183662d57dea5d50a.tar.gz ansible-5479f08c80bc7e0762fe81b183662d57dea5d50a.tar.xz ansible-5479f08c80bc7e0762fe81b183662d57dea5d50a.zip |
Try and fix watchdog so it doesn't try and install everywhere breaking everything. ;)
-rw-r--r-- | roles/base/tasks/watchdog.yml | 4 |
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 |