Hello team !
I have a little issue with the pause module, in fact if I do a small pause like 10 sec : it works perfectly.
But if I start to pause for like 90 sec it will ask me the passphrase again for my ssh connection and i don’t understand why ? I know the wait_for module works perfectly for that but i’m looking hereto understand Last of all is anyone able to give me a link to the source code of this module i’m not abble to find it
Hi Guillaume,
This question is probably more for the ansible-project ML. In any case, I guess the issue will be a timeout in your ssh connection. When using pause, the process will just sleep that number of seconds, and if you have an idle timeout in your ssh config, you’ll get disconnected.
This doesn’t happen with wait_for because the module will keep trying connecting meaning the connection won’t idle.
The source for the pause module can be found here: https://github.com/ansible/ansible/blob/devel/lib/ansible/modules/utilities/logic/pause.py
Regards,
Andrea “Shaps”
Oh sorry if I post it in the wrong group and thanks for the answer !
Regards,
Guillaume JEANNE