pyinfra.api.connect module

pyinfra.api.connect.connect_all(state, progress=None)

Connect to all the configured servers in parallel. Reads/writes state.inventory.

Parameters:state (pyinfra.api.State obj) – the state containing an inventory to connect to