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>
25 lines
550 B
YAML
25 lines
550 B
YAML
---
|
|
- name: systemctl daemon-reload
|
|
become: yes
|
|
ansible.builtin.systemd:
|
|
daemon_reload: yes
|
|
|
|
- name: systemctl enable units
|
|
become: yes
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
enabled: yes
|
|
masked: no
|
|
with_items:
|
|
- sm_fan_control.service
|
|
- sm_fan_control.timer
|
|
|
|
- name: systemctl start units
|
|
become: yes
|
|
ansible.builtin.systemd:
|
|
name: "{{ item }}"
|
|
state: restarted
|
|
enabled: yes
|
|
with_items:
|
|
- sm_fan_control.timer
|
|
notify: systemctl daemon-reload
|