Learners attend their courses in remote or hybrid systems find it difficult to follow one size fits all courses. These difficulties have increased with the pandemic, lockdown, and the stress they cause. Hence, the role of adaptive systems to recommend personalized learning resources according to the learner's profile. The purpose of this paper is to design a system for recommending learning objects according learner's condition, including his mental state, his COVID-19 history, as well as his social situation and ability to connect to the e-learning system on a regular basis. In this article, we present an architecture of a recommendation system for personalized learning objects based on ontologies and on rule-based reasoning, and we will also describe the inference rules required for the adaptation of the educational content to the needs of the learners, taking into account the learner’s health and mental state, as well as his social situation. The system designed, and validated using the unified modeling language (UML). It additionally allows teachers to have a holistic view of learners’ progress and situations.