The ledger should be attached.
How to connect a patio roof to a valley roof.
Then nail shingles on the new roof and exposed areas of the old roof.
Finish the new roof by nailing on osb sheathing covering it with roofing paper and nailing in metal flashing along the valleys and metal drip edge at the eaves.
Once the patio roof is installed perfectly you will be able to furnish it so that you can get your ultimate comfort.
When they are installed you can begin attaching roofing shingles.
I said all of that to say this.
If you are going to use shingles to cover the patio roof do not forget to install black roofing felt along with a single layer of oriented strand board.
You could cut the new ridge board into the existing roof and tie it into the house rafters or trusses but i am not sure that is necessary.
Those 2x s create the bottom of your new valley and your jack rafters on the porch roof will extend from that up to your new ridge board.
Locating and mounting the ledger is normally a fairly easy process.
After installing the rafters we still had to extend the porch roof back over the shed roof creating a valley on either side.
A house attached patio roof takes advantage of the house s structure by supporting one end of the roof on a ledger mounted horizontally to the house.
Strip the roofing from the old roof at the connection point to expose.
Fold new shingles over the new valley onto the old roof overlapping by at least a foot.
To keep the porch roof framing as simple as possible we installed a structural ridge supported by posts at each end with the common rafters landing on top of the ridge.