mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-04-26 03:23:08 +08:00
package only works in 2.0. ;(
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user