package only works in 2.0. ;(

This commit is contained in:
Kevin Fenzi
2015-11-09 17:26:04 +00:00
parent 2110970a6d
commit d511ce5aa5

View File

@@ -3,12 +3,22 @@
# Setup watchdog
#
- name: install needed packages
package: pkg={{ item }} state=present
yum: pkg={{ item }} state=present
with_items:
- watchdog
tags:
- packages
- watchdog
when: ansible_distribution_major_version|int < 22
- name: install needed packages
dnf: pkg={{ item }} state=present
with_items:
- watchdog
tags:
- packages
- watchdog
when: ansible_distribution_major_version|int > 21
- name: watchdog device configuration
copy: src=watchdog-device dest=/etc/watchdog.d/watchdog-device owner=root group=root mode=644