homeserver/friedhof/mgrote_supermicro_fan_control/tasks/main.yml

37 lines
789 B
YAML
Raw Permalink Normal View History

---
- name: install packages
become: true
ansible.builtin.package:
name:
- ipmitool
state: present
- name: template sm_fan_control.service
become: true
ansible.builtin.template:
src: sm_fan_control.service.j2
dest: /etc/systemd/system/sm_fan_control.service
owner: root
group: root
mode: "0644"
notify:
- systemctl daemon-reload
- name: template sm_fan_control.timer
become: true
ansible.builtin.template:
src: sm_fan_control.timer.j2
dest: /etc/systemd/system/sm_fan_control.timer
owner: root
group: root
mode: "0644"
notify:
- systemctl daemon-reload
- name: systemctl start sm_fan_control.timer
become: true
ansible.builtin.systemd:
name: sm_fan_control.timer
state: started
enabled: true