mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-04 17:53:10 +00:00
fixed enabled reporting
This commit is contained in:
@@ -321,7 +321,8 @@ def main():
|
||||
(rc, out, err) = module.run_command("%s %s '%s'" % (systemctl, action, unit))
|
||||
if rc != 0:
|
||||
module.fail_json(msg="Unable to %s service %s: %s" % (action, unit, err))
|
||||
result['enabled'] = module.params['enabled']
|
||||
|
||||
result['enabled'] = enabled
|
||||
|
||||
if module.params['state'] is not None:
|
||||
# What is current service state?
|
||||
|
||||
Reference in New Issue
Block a user