Skip to content

Commit

Permalink
improve nut handler (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Nov 11, 2024
1 parent e546f0e commit c8cc7f4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,11 @@

# cron
- name: nut restart # noqa no-changed-when
ansible.builtin.command: configctl nut restart
ansible.builtin.command: "{{ item }}"
with_items:
- configctl nut stop
- configctl template reload OPNsense/Nut
- configctl nut start
when:
- config is defined
- config.changed | bool
Expand Down

0 comments on commit c8cc7f4

Please sign in to comment.