mirror of
https://gitlab.archlinux.org/archlinux/infrastructure.git
synced 2025-01-18 08:06:16 +01:00
Add "noqa no-changed-when" tags to handlers using the command module. Perhaps it is wrong of ansible-lint to flag these, since handlers are not the best place to have conditional execution.
11 lines
333 B
YAML
11 lines
333 B
YAML
# https://github.com/systemd/systemd/issues/9627
|
|
- name: Delete wg0 # noqa no-changed-when
|
|
command: networkctl delete wg0
|
|
register: result
|
|
failed_when: result.rc not in [0, 1]
|
|
listen: Reload wireguard
|
|
|
|
- name: Reload .network and .netdev files # noqa no-changed-when
|
|
command: networkctl reload
|
|
listen: Reload wireguard
|