Skip to content

Commit

Permalink
fixed order and comments for handlers
Browse files Browse the repository at this point in the history
  • Loading branch information
zerwes committed Dec 7, 2024
1 parent 4d201e4 commit ab48212
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions handlers/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}"
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit ab48212

Please sign in to comment.