I have the problem with service module - it
sometimes (!)
throws an error, when restarting supervisor.
I tried to reproduce this bug in a sandbox project, but wasnt
succeed. But in my sandbox supervisor was not handled any processes.
So - my guess, when supervisor supervising some processes - it
restarts longer, and because of it Ansible's service module fails
because it has some kind of timeout.
Here is the output with fail:
TASK: [supervisor | restart service]
******************************************
failed: [default] => {"failed": true, "item": ""}
msg: Stopping supervisor: supervisord.
Starting
supervisor:
...ignoring
TASK: [supervisor | debug var=restart_supervisord_result]
*********************
ok: [default] => {
"item":
"",
"restart_supervisord_result":
{
"failed":
true,
"invocation":
{
"module_args": "name=supervisord state=restarted
enabled=yes",
"module_name":
"service"
},
"item":
"",
"msg": "Stopping supervisor: supervisord.\nStarting
supervisor: "
}
}
--
With kind regards, Andrew Pashkin.
cell phone - +7 (985) 898 57 59
Skype - waves_in_fluids
e-mail - andrew....@gmx.co.uk