From ab482127ed4909bc7b54755b8adbd4a51dc54c7b Mon Sep 17 00:00:00 2001 From: Klaus Zerwes Date: Sat, 7 Dec 2024 05:50:40 +0100 Subject: [PATCH] fixed order and comments for handlers --- handlers/main.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/handlers/main.yml b/handlers/main.yml index 4a20a34..467a651 100644 --- a/handlers/main.yml +++ b/handlers/main.yml @@ -113,6 +113,14 @@ - config is defined - config.changed | bool +- name: stop ipsec # noqa no-changed-when + ansible.builtin.command: configctl ipsec stop + listen: + - stop ipsec + when: + - config is defined + - config.changed | bool + # wireguard - name: reconfigure wireguard # noqa no-changed-when ansible.builtin.command: "{{ item }}" @@ -126,14 +134,6 @@ - config is defined - config.changed | bool -- name: stop ipsec # noqa no-changed-when - ansible.builtin.command: configctl ipsec stop - listen: - - stop ipsec - when: - - config is defined - - config.changed | bool - # interfaces, vlans etc - name: reconfigure vlans # noqa no-changed-when ansible.builtin.command: /usr/local/opnsense/scripts/interfaces/reconfigure_vlans.php @@ -196,7 +196,7 @@ - config is defined - config.changed | bool -# cron +# nut - name: nut restart # noqa no-changed-when ansible.builtin.command: "{{ item }}" with_items: