code: def command(state, host, hostname, command, ssh_user=None):
      '''
      Execute commands on other servers over SSH.
  
      + hostname: the hostname to connect to
      + command: the command to execute
      + ssh_user: connect with this user
      '''
  
      connection_target = hostname
      if ssh_user:
          connection_target = '@'.join((ssh_user, hostname))
  
      yield 'ssh {0} "{1}"'.format(connection_target, commandf command(state, host, hostname, command, ssh_user=None):
      '''
      Execute commands on other servers over SSH.
  
      + hostname: the hostname to connect to
      + command: the command to execute
      + ssh_user: connect with this user
      '''
  
      connection_target = hostname
      if ssh_user:
          connection_target = '@'.join((ssh_user, hostname))
  
      yield 'ssh {0} "{1}"'.format(connection_target, command)
docs: Execute commands on other servers over SSH.
  
      + hostname: the hostname to connect to
      + command: the command to execute
      + ssh_user: connect with this user