My truck was started in the morning and as it sat idle in the driveway I started attaching my trailer. By the time I got the trailer attached(20 seconds) there was smoke pouring out from under the hood. I immediately turned off the truck popped the hood and it was engulfed in flames. I was able to put out the fire with the garden hose. No check engine lights, no warning lights on dash, and I had just got it back from the dealership 2 days earlier and it passed a safety inspection before I picked it up. Im not sure what component failed but whatever did caused a fire