mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
In service_enable, the default of changed is True so we have to set it to False explicitly if it is False.
Fixes #875
This commit is contained in:
parent
2121bbc208
commit
9fa04de137
1 changed files with 2 additions and 0 deletions
|
@ -776,6 +776,8 @@ class LinuxService(Service):
|
||||||
self.module.fail_json(msg=err)
|
self.module.fail_json(msg=err)
|
||||||
else:
|
else:
|
||||||
self.module.fail_json(msg=out) % (self.enable_cmd, self.name, action)
|
self.module.fail_json(msg=out) % (self.enable_cmd, self.name, action)
|
||||||
|
else:
|
||||||
|
self.changed = False
|
||||||
|
|
||||||
return
|
return
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue