Reload systemd daemons only if unit file change.

This commit is contained in:
Jeremy Gardais 2018-02-06 17:28:41 +01:00
parent eb93ff65f9
commit 0a909641b5
2 changed files with 8 additions and 0 deletions

View File

@ -1,4 +1,10 @@
## v1.3.1
### Fix
* Reload systemd daemons only if unit file change.
## v1.3 ## v1.3
### Features ### Features

View File

@ -100,6 +100,8 @@
- name: Reload systemd daemons - name: Reload systemd daemons
command: systemctl daemon-reload command: systemctl daemon-reload
notify: ['restart nftables service'] notify: ['restart nftables service']
when: (nft_service_manage and
nftables__register_systemd_service|changed)
- name: SERVICE manage '{{ nft_service_name }}' - name: SERVICE manage '{{ nft_service_name }}'
service: service: