1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Added 'reloaded' state to list of states checked for bounced services

Fixes #3556
This commit is contained in:
James Cammarata 2013-09-03 09:49:19 -05:00
parent ff203dda45
commit 26a8d4ce9f

View file

@ -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'