From 0a909641b5e6b38d386248ee68349643ae9a4897 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gardais=20J=C3=A9r=C3=A9my?= Date: Tue, 6 Feb 2018 17:28:41 +0100 Subject: [PATCH] Reload systemd daemons only if unit file change. --- CHANGELOG.md | 6 ++++++ tasks/main.yml | 2 ++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index a0ca6c3..3486d53 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,10 @@ +## v1.3.1 + +### Fix + +* Reload systemd daemons only if unit file change. + ## v1.3 ### Features diff --git a/tasks/main.yml b/tasks/main.yml index dad8bd6..701f84c 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -100,6 +100,8 @@ - name: Reload systemd daemons command: systemctl daemon-reload notify: ['restart nftables service'] + when: (nft_service_manage and + nftables__register_systemd_service|changed) - name: SERVICE manage '{{ nft_service_name }}' service: