From bad435fad41154350660735d92f6e5dffd9475bc Mon Sep 17 00:00:00 2001 From: Markus Hauschild Date: Mon, 22 Jun 2020 13:24:53 +0200 Subject: [PATCH] cleanup: use systemd module for daemon-reloaed --- roles/fastd-exporter/handlers/main.yml | 2 +- roles/fastd/handlers/main.yml | 6 +++--- roles/mesh-interfaces/handlers/main.yml | 2 +- roles/node_exporter/handlers/main.yml | 2 +- roles/prometheus/handlers/main.yml | 2 +- roles/respondd/handlers/main.yml | 2 +- roles/yanic/handlers/main.yml | 2 +- 7 files changed, 9 insertions(+), 9 deletions(-) diff --git a/roles/fastd-exporter/handlers/main.yml b/roles/fastd-exporter/handlers/main.yml index f2f14ea..fe96ce2 100644 --- a/roles/fastd-exporter/handlers/main.yml +++ b/roles/fastd-exporter/handlers/main.yml @@ -1,7 +1,7 @@ --- - name: Reload systemd - command: systemctl daemon-reload + systemd: daemon_reload=yes - name: Restart fastd-exporter service: name=fastd-exporter state=restarted diff --git a/roles/fastd/handlers/main.yml b/roles/fastd/handlers/main.yml index 1f9b9ef..493b090 100644 --- a/roles/fastd/handlers/main.yml +++ b/roles/fastd/handlers/main.yml @@ -1,8 +1,8 @@ --- +- name: Reload systemd + systemd: daemon_reload=yes + - name: Restart fastd service: name=fastd@{{ site_code }}{{ item }} state=restarted with_sequence: start=0 count={{ fastd_instances }} - -- name: Reload systemd - command: systemctl daemon-reload diff --git a/roles/mesh-interfaces/handlers/main.yml b/roles/mesh-interfaces/handlers/main.yml index c0ee4dc..fdd638b 100644 --- a/roles/mesh-interfaces/handlers/main.yml +++ b/roles/mesh-interfaces/handlers/main.yml @@ -4,4 +4,4 @@ command: /sbin/ifreload -a - name: Reload systemd - command: systemctl daemon-reload + systemd: daemon_reload=yes diff --git a/roles/node_exporter/handlers/main.yml b/roles/node_exporter/handlers/main.yml index 4ab254d..2394b0a 100644 --- a/roles/node_exporter/handlers/main.yml +++ b/roles/node_exporter/handlers/main.yml @@ -1,7 +1,7 @@ --- - name: Reload systemd - command: systemctl daemon-reload + systemd: daemon_reload=yes - name: Restart node_exporter service: name=node_exporter state=restarted diff --git a/roles/prometheus/handlers/main.yml b/roles/prometheus/handlers/main.yml index 51336c6..a1d1181 100644 --- a/roles/prometheus/handlers/main.yml +++ b/roles/prometheus/handlers/main.yml @@ -1,7 +1,7 @@ --- - name: Reload systemd - command: systemctl daemon-reload + systemd: daemon_reload=yes - name: Restart prometheus service: name=prometheus state=restarted diff --git a/roles/respondd/handlers/main.yml b/roles/respondd/handlers/main.yml index 1fd0434..6947fb2 100644 --- a/roles/respondd/handlers/main.yml +++ b/roles/respondd/handlers/main.yml @@ -1,7 +1,7 @@ --- - name: Reload systemd - command: systemctl daemon-reload + systemd: daemon_reload=yes - name: Restart respondd service: name=respondd state=restarted diff --git a/roles/yanic/handlers/main.yml b/roles/yanic/handlers/main.yml index adbe0a3..a1aa6d8 100644 --- a/roles/yanic/handlers/main.yml +++ b/roles/yanic/handlers/main.yml @@ -1,7 +1,7 @@ --- - name: Reload systemd - command: systemctl daemon-reload + systemd: daemon_reload=yes - name: Restart yanic service: name=yanic state=restarted