code: def _run_server_ops(state, host, progress=None):
      '''
      Run all ops for a single server.
      '''
  
      logger.debug('Running all ops on {0}'.format(host))
  
      for op_hash in state.get_op_order():
          op_meta = state.op_meta[op_hash]
  
          logger.info('--> {0} {1} on {2}'.format(
              click.style('--> Starting operation:', 'blue'),
              click.style(', '.join(op_meta['names']), bold=True),
              click.style(host.name, bold=True),
          ))
  
          result = _run_server_op(state, host, op_hash)
  
          # Trigger CLI progress if provided
          if progress:
              progress((host, op_hash))
  
          if result is False:
              raise PyinfraError('Error in operation {0} on {1}'.format(
                  ', '.join(op_meta['names']), host,
              ))
  
          if pyinfra.is_cli:
              print(f _run_server_ops(state, host, progress=None):
      '''
      Run all ops for a single server.
      '''
  
      logger.debug('Running all ops on {0}'.format(host))
  
      for op_hash in state.get_op_order():
          op_meta = state.op_meta[op_hash]
  
          logger.info('--> {0} {1} on {2}'.format(
              click.style('--> Starting operation:', 'blue'),
              click.style(', '.join(op_meta['names']), bold=True),
              click.style(host.name, bold=True),
          ))
  
          result = _run_server_op(state, host, op_hash)
  
          # Trigger CLI progress if provided
          if progress:
              progress((host, op_hash))
  
          if result is False:
              raise PyinfraError('Error in operation {0} on {1}'.format(
                  ', '.join(op_meta['names']), host,
              ))
  
          if pyinfra.is_cli:
              print()
docs: Run all ops for a single server.