pyinfra.api.operations module

pyinfra.api.operations.run_host_op(state: State, host: Host, op_hash)
pyinfra.api.operations.run_ops(state: State, serial: bool = False, no_wait: bool = False)

Runs all operations across all servers in a configurable manner.

Parameters
  • state (pyinfra.api.State obj) – the deploy state to execute
  • serial (boolean) – whether to run operations host by host
  • no_wait (boolean) – whether to wait for all hosts between operations
pyinfra.api.operations.show_pre_or_post_condition_warning(condition_name)