How to ROTATE from a CURVE

I know the tool “Rotate Axis” but how can I trasnform this axis into a curve and rotate elements (in this case a two tanget cylinders)

you need to specify the axis of rotation, then feed this into rotate axis. the axis of rotation can be a line, use the centerline of one of the cylinders