mg
ea64d95e2a
Co-authored-by: Michael Grote <michael.grote@posteo.de> Reviewed-on: mg/ansible#342 Co-authored-by: mg <michael.grote@posteo.de> Co-committed-by: mg <michael.grote@posteo.de>
36 lines
844 B
YAML
36 lines
844 B
YAML
---
|
|
- name: install packages
|
|
become: yes
|
|
ansible.builtin.package:
|
|
name:
|
|
- ipmitool
|
|
state: present
|
|
|
|
- name: template sm_fan_control.service
|
|
become: yes
|
|
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: yes
|
|
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: yes
|
|
ansible.builtin.systemd:
|
|
name: sm_fan_control.timer
|
|
state: started
|
|
enabled: yes
|