mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-05-06 21:32:49 +00:00
Added 'reloaded' state to list of states checked for bounced services
Fixes #3556
This commit is contained in:
@@ -1107,7 +1107,7 @@ def main():
|
||||
else:
|
||||
# as we may have just bounced the service the service command may not
|
||||
# report accurate state at this moment so just show what we ran
|
||||
if service.module.params['state'] in ['started','restarted','running']:
|
||||
if service.module.params['state'] in ['started','restarted','running','reloaded']:
|
||||
result['state'] = 'started'
|
||||
else:
|
||||
result['state'] = 'stopped'
|
||||
|
||||
Reference in New Issue
Block a user