In this paper we consider the quantum repeater protocol for distributing the entanglement to two distant three-level atoms. In this protocol, we insert six atoms between two target atoms such that the eight considered atoms are labeled by 1, 2, • • • 8, while only each two adjacent atoms (i, i + 1) with i = 1, 3, 5, 7 are entangled. Initially, the separable atomic pair states (1,4) and (5,8) become entangled by performing interaction between atoms (2,3) and (6,7) in two optomechanical cavities, respectively. Then, via performing appropriate interaction between atoms (4,5) in an optical cavity quantum electrodynamics (QED) approach, the target atoms (1,8) are finally become entangled. Throughout this investigation, the effects of mechanical frequency and optomechanical coupling strength to the field modes on the produced entanglement and the related success probability are evaluated. It is shown that, the time period of produced entanglement can be developed by increasing the mechanical frequency. Also, maximum of success probability of atoms (1,8) is increased by decreasing the optomechanical coupling strength to the field modes in most cases.