code: def ppa(state, host, name, present=True):
      '''
      Add/remove Ubuntu ppa repositories.
  
      + name: the PPA name (full ppa:user/repo format)
      + present: whether it should exist
  
      Note:
          requires ``apt-add-repository`` on the remote host
      '''
  
      if present:
          yield 'apt-add-repository -y "{0}"'.format(name)
  
      if not present:
          yield 'apt-add-repository -y --remove "{0}"'.format(namef ppa(state, host, name, present=True):
      '''
      Add/remove Ubuntu ppa repositories.
  
      + name: the PPA name (full ppa:user/repo format)
      + present: whether it should exist
  
      Note:
          requires ``apt-add-repository`` on the remote host
      '''
  
      if present:
          yield 'apt-add-repository -y "{0}"'.format(name)
  
      if not present:
          yield 'apt-add-repository -y --remove "{0}"'.format(name)
docs: Add/remove Ubuntu ppa repositories.
  
      + name: the PPA name (full ppa:user/repo format)
      + present: whether it should exist
  
      Note:
          requires ``apt-add-repository`` on the remote host