Most ansible-freeipa modules initialize a connection to the FreeIPA API that persists for the duration of a single module's execution. ipalib, where this method lives, assumes that only a single bootstrapped API exists at any one time, and that any future invocations of bootstrap() are preceded by a finalize() call.
While this could in theory be fixed in freeipa, it's a relatively invasive fix which may not be the best option. As a stopgap, the relevant modules should be added to Mitogen's internal always-fork list.
Most ansible-freeipa modules initialize a connection to the FreeIPA API that persists for the duration of a single module's execution. ipalib, where this method lives, assumes that only a single bootstrapped API exists at any one time, and that any future invocations of bootstrap() are preceded by a finalize() call.
While this could in theory be fixed in freeipa, it's a relatively invasive fix which may not be the best option. As a stopgap, the relevant modules should be added to Mitogen's internal always-fork list.