vvvv("connection to %s failed, retrying..."%self.host)
self._display.vvvv("connection to %s failed, retrying..."%self._play_context.remote_addr)
time.sleep(0.1)
tries-=1
iftries==0:
vvv("Could not connect via the accelerated connection, exceeded # of tries")
raiseAnsibleError("FAILED")
self._display.vvv("Could not connect via the accelerated connection, exceeded # of tries")
raiseAnsibleConnectionFailure("Failed to connect to %s on the accelerated port %s"%(self._play_context.remote_addr,self._play_context.accelerate_port))
elifwrong_user:
vvv("Restarting daemon with a different remote_user")
raiseAnsibleError("WRONG_USER")
self._display.vvv("Restarting daemon with a different remote_user")
raiseAnsibleError("The accelerated daemon was started on the remote with a different user")
raiseAnsibleError('Incorrect permissions on the private key directory. Use `chmod 0%o %s` to correct this issue, and make sure any of the keys files contained within that directory are set to 0%o'%(int(C.ACCELERATE_KEYS_DIR_PERMS,8),C.ACCELERATE_KEYS_DIR,int(C.ACCELERATE_KEYS_FILE_PERMS,8)))
key_path=os.path.join(key_path,hostname)
# use new AES keys every 2 hours, which means fireball must not allow running for longer either
raiseAnsibleError('Incorrect permissions on the key file for this host. Use `chmod 0%o %s` to correct this issue.'%(int(C.ACCELERATE_KEYS_FILE_PERMS,8),key_path))