The two terminals are one and the same building. It's a 500m walk maximum from one end of T1 to the other end of T2. A quick security check and you're upstairs at departures. Totally doable.
Not sure about the current COVID restrictions in Morocco - do check those.