The use of prints in the freeipa code is resulting in the need to redirect the possible standard output in ansible-freeipa. For the simplification of the ansible-freeipa backport patches () it is needed to have a new way for command output in the installers.
The use of contextlib.redirect_stdout is is not always simply possible as this is resulting in a different scope so that variables that are created in the scope will not be visible and usable outside.
A solution could be to use logger.info with an extra tag to mark installer command output.
Metadata Update from @abbra: - Issue tagged with: Raven
Login to comment on this ticket.