Skip to content

Commit

Permalink
Merge pull request #1 from MiLk/fixes/coretemp-boot
Browse files Browse the repository at this point in the history
Load coretemp module on boot
  • Loading branch information
MiLk committed Jun 26, 2015
2 parents d6758db + c18b06d commit b7d9e96
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 0 deletions.
3 changes: 3 additions & 0 deletions files/coretemp.modules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

exec /sbin/modprobe coretemp >/dev/null 2>&1
24 changes: 24 additions & 0 deletions tasks/centos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,3 +47,27 @@
tags:
- collectd
- pkgs

- name: "Load coretemp module on boot"
copy: >
src=coretemp.modules
dest=/etc/sysconfig/modules/coretemp.modules
owner=root
group=root
mode=0700
when: monitor_coretemp and ansible_distribution_major_version|int == 6
tags:
- collectd
- files

- name: "Load coretemp module on boot"
copy: >
content=coretemp
dest=/etc/modules-load.d/coretemp.conf
owner=root
group=root
mode=0600
when: monitor_coretemp and ansible_distribution_major_version|int == 7
tags:
- collectd
- files
9 changes: 9 additions & 0 deletions tasks/debian.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,12 @@
- install
- collectd
- pkgs

- name: "Load coretemp module on boot"
lineinfile: >
dest=/etc/modules
line=coretemp
when: monitor_coretemp
tags:
- collectd
- files

0 comments on commit b7d9e96

Please sign in to comment.