code: def _run_serial_ops(state):
      '''
      Run all ops for all servers, one server at a time.
      '''
  
      for host in list(state.inventory):
          host_operations = product([host], state.get_op_order())
          with progress_spinner(host_operations) as progress:
              try:
                  _run_server_ops(
                      state, host,
                      progress=progress,
                  )
              except PyinfraError:
                  state.fail_hosts({host}f _run_serial_ops(state):
      '''
      Run all ops for all servers, one server at a time.
      '''
  
      for host in list(state.inventory):
          host_operations = product([host], state.get_op_order())
          with progress_spinner(host_operations) as progress:
              try:
                  _run_server_ops(
                      state, host,
                      progress=progress,
                  )
              except PyinfraError:
                  state.fail_hosts({host})
docs: Run all ops for all servers, one server at a time.