roles: update handlers/main.yaml and set_resolved.yaml to modify handler from reload to restart to apply configuration immediately

This commit is contained in:
2026-03-21 11:51:43 +09:00
parent 224b27abc3
commit 242b719671
2 changed files with 4 additions and 4 deletions

View File

@@ -27,14 +27,14 @@
listen: "notification_reload_networkctl"
ignore_errors: true # noqa: ignore-errors
- name: Reload systemd-resolved.service
- name: Restart systemd-resolved.service
ansible.builtin.systemd:
name: "systemd-resolved.service"
state: "reloaded"
state: "restarted"
enabled: true
become: true
changed_when: false
listen: "notification_reload_resolved"
listen: "notification_restart_resolved"
ignore_errors: true # noqa: ignore-errors
- name: Restart systemd-timesyncd

View File

@@ -28,7 +28,7 @@
group: "systemd-resolve"
mode: "0640"
become: true
notify: "notification_reload_resolved"
notify: "notification_restart_resolved"
- name: Restart systemd-resolved.service when it is initiated
ansible.builtin.systemd: