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:
@@ -27,14 +27,14 @@
|
|||||||
listen: "notification_reload_networkctl"
|
listen: "notification_reload_networkctl"
|
||||||
ignore_errors: true # noqa: ignore-errors
|
ignore_errors: true # noqa: ignore-errors
|
||||||
|
|
||||||
- name: Reload systemd-resolved.service
|
- name: Restart systemd-resolved.service
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
name: "systemd-resolved.service"
|
name: "systemd-resolved.service"
|
||||||
state: "reloaded"
|
state: "restarted"
|
||||||
enabled: true
|
enabled: true
|
||||||
become: true
|
become: true
|
||||||
changed_when: false
|
changed_when: false
|
||||||
listen: "notification_reload_resolved"
|
listen: "notification_restart_resolved"
|
||||||
ignore_errors: true # noqa: ignore-errors
|
ignore_errors: true # noqa: ignore-errors
|
||||||
|
|
||||||
- name: Restart systemd-timesyncd
|
- name: Restart systemd-timesyncd
|
||||||
|
|||||||
@@ -28,7 +28,7 @@
|
|||||||
group: "systemd-resolve"
|
group: "systemd-resolve"
|
||||||
mode: "0640"
|
mode: "0640"
|
||||||
become: true
|
become: true
|
||||||
notify: "notification_reload_resolved"
|
notify: "notification_restart_resolved"
|
||||||
|
|
||||||
- name: Restart systemd-resolved.service when it is initiated
|
- name: Restart systemd-resolved.service when it is initiated
|
||||||
ansible.builtin.systemd:
|
ansible.builtin.systemd:
|
||||||
|
|||||||
Reference in New Issue
Block a user