From ee4b3b8854033e44cf945b6709a8a0e81a8cae46 Mon Sep 17 00:00:00 2001 From: Strahinja Kustudic Date: Wed, 4 Sep 2019 16:39:29 +0200 Subject: [PATCH] Fix systemd start state with deactivating service state --- lib/ansible/modules/system/systemd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ansible/modules/system/systemd.py b/lib/ansible/modules/system/systemd.py index cd46316c05c..ff03d3e296c 100644 --- a/lib/ansible/modules/system/systemd.py +++ b/lib/ansible/modules/system/systemd.py @@ -271,7 +271,7 @@ from ansible.module_utils._text import to_native def is_running_service(service_status): - return service_status['ActiveState'] in set(['active', 'activating', 'deactivating']) + return service_status['ActiveState'] in set(['active', 'activating']) def is_deactivating_service(service_status):