5G is a key enabler of Industrial Internet of Things (IIoT) that provides seamless connectivity between machines, sensors and computing servers. Security and privacy are major concerns for 5G enabled IIoT. Physical Layer Security (PLS) is a promising technique that can enhance the security of 5G enabled IIoT. In this paper, we present an IRS-assisted PLS scheme for 5G enabled IIoT that improves the weighted secrecy sum-rate (WSSR) of the industrial wireless network, where eavesdroppers are present around the facility. The key idea is to jointly optimize active and passive beamforming vectors to increase the secrecy rate at the user. To maximize WSSR, we use the stable matching algorithm that optimally assigns IRSs for secure data sharing between industrial units. Simulation results show that the proposed scheme enhances the WSSR performance by 40% and minimum secrecy rate by 25% as compared to the random and maximum weight matching schemes, respectively.