From 17db132b8d65346028fdba9f0eaf17dba6251088 Mon Sep 17 00:00:00 2001 From: Matt Birkholz Date: Mon, 2 Sep 2024 17:19:28 -0600 Subject: [PATCH] Use the systemd Ansible module to reload daemon configs. --- README.org | 9 ++++++--- roles_t/campus/handlers/main.yml | 3 ++- roles_t/core/handlers/main.yml | 3 ++- roles_t/front/handlers/main.yml | 3 ++- 4 files changed, 12 insertions(+), 6 deletions(-) diff --git a/README.org b/README.org index 7a0e635..6b45122 100644 --- a/README.org +++ b/README.org @@ -2335,7 +2335,8 @@ be started before the ~tun~ device has appeared. - name: Reload Systemd. become: yes - command: systemctl daemon-reload + systemd: + daemon-reload: yes #+END_SRC Finally, Kamailio can be configured and started. @@ -2458,7 +2459,8 @@ list, and to disable its cache and stub listener. - name: Reload Systemd. become: yes - command: systemctl daemon-reload + systemd: + daemon-reload: yes - name: Restart Systemd resolved. become: yes @@ -5218,7 +5220,8 @@ and include the institute's private domain in their search lists. --- - name: Reload Systemd. become: yes - command: systemctl daemon-reload + systemd: + daemon-reload: yes - name: Restart Systemd resolved. become: yes diff --git a/roles_t/campus/handlers/main.yml b/roles_t/campus/handlers/main.yml index 75255bd..e569fd6 100644 --- a/roles_t/campus/handlers/main.yml +++ b/roles_t/campus/handlers/main.yml @@ -1,7 +1,8 @@ --- - name: Reload Systemd. become: yes - command: systemctl daemon-reload + systemd: + daemon-reload: yes - name: Restart Systemd resolved. become: yes diff --git a/roles_t/core/handlers/main.yml b/roles_t/core/handlers/main.yml index e5bd621..8b8bd1c 100644 --- a/roles_t/core/handlers/main.yml +++ b/roles_t/core/handlers/main.yml @@ -5,7 +5,8 @@ - name: Reload Systemd. become: yes - command: systemctl daemon-reload + systemd: + daemon-reload: yes - name: Restart Systemd resolved. become: yes diff --git a/roles_t/front/handlers/main.yml b/roles_t/front/handlers/main.yml index 8870c6f..d34e472 100644 --- a/roles_t/front/handlers/main.yml +++ b/roles_t/front/handlers/main.yml @@ -46,7 +46,8 @@ - name: Reload Systemd. become: yes - command: systemctl daemon-reload + systemd: + daemon-reload: yes - name: Restart Kamailio. become: yes -- 2.25.1