From 9fa04de137d8220cd47f2c74999e04f8b1da0fb9 Mon Sep 17 00:00:00 2001 From: Toshio Kuratomi Date: Tue, 3 Mar 2015 11:22:31 -0800 Subject: [PATCH] In service_enable, the default of changed is True so we have to set it to False explicitly if it is False. Fixes #875 --- lib/ansible/modules/system/service.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/ansible/modules/system/service.py b/lib/ansible/modules/system/service.py index c712c43ce9f..9d921472349 100644 --- a/lib/ansible/modules/system/service.py +++ b/lib/ansible/modules/system/service.py @@ -776,6 +776,8 @@ class LinuxService(Service): self.module.fail_json(msg=err) else: self.module.fail_json(msg=out) % (self.enable_cmd, self.name, action) + else: + self.changed = False return