pyinfra.api.connect module

pyinfra.api.connect.connect_all(state: State)

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

pyinfra.api.connect.disconnect_all(state: State)