Try and fix watchdog so it doesn't try and install everywhere breaking everything. ;)
This commit is contained in:
parent
833269b151
commit
5479f08c80
1 changed files with 3 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
- name: See if theres a watchdog device
|
- name: See if theres a watchdog device
|
||||||
stat: path=/dev/watchdog
|
stat: path=/dev/watchdog
|
||||||
when: ansible_virtualization_role == 'guest'
|
when: ansible_virtualization_role == 'guest'
|
||||||
|
always_run: true
|
||||||
|
failed_when: no
|
||||||
register: watchdog_dev
|
register: watchdog_dev
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
@ -31,4 +33,4 @@
|
||||||
- service
|
- service
|
||||||
- watchdog
|
- watchdog
|
||||||
- base
|
- 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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue