You might find it scary or even impossible to hang something on a brick wall but it can be done.
Mounting a steel gate to brick wall.
Mark the mounting holes on the hinges onto the wall using a felt tip marker.
Have a friend or family member help you hold the gate while you place a bubble level on the front of it.
Hold the gate in position against the brick post on the hinge side.
By far the easiest of the gate posts to fix and supplied in the same material as your gates softwood gates then softwood fixing stiles etc so everything matches used for fixing to a wall or other structure and fixed by either frame fixings or masonry screws bolts.
While your assistants hold the object in place use the hammer drill with masonry bit to drill anchor holes through the object and brick.
Leah from see jane drill demonstrates how to use a screw and anchor also sometimes called a walldog to attach furniture to a brick wall.
These holes should be slightly deeper than the length of the anchor excluding the bolt washer and thickness of the object being mounted and should be at least five anchor diameters away from the edges of the object and 10 anchor diameters away from each other.
How to hang something on brick.
Set the gate aside.
Align the gate against the post so that the hinge mounting holes are centered over the bricks and not over mortar or partly over.
Position the gate so it stands plumb then swing the gate to the open position.