tuxinvader.launchpad.ppa (1.0.7) — module

Retrieve facts about a Launchpad project

| "added in version" 1.0.0 of tuxinvader.launchpad"

Authors: Mark Boddington (@TuxInvader)

Install collection

Install with ansible-galaxy collection install tuxinvader.launchpad:==1.0.7


Add to requirements.yml

  collections:
    - name: tuxinvader.launchpad
      version: 1.0.7

Description

Retrieve facts about a Launchpad project and its PPAs

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Ensure the PPA ~tuxinvader/jammy-mainline exists
- name: Ensure ~tuxinvader/jammy-mainline exists
  ppa:
    project: ~tuxinvader
    name: jammy-mainline
    ensure: present
  environment:
    LP_ACCESS_TOKEN: kjaslkdjalksd
    LP_ACCESS_SECRET: alskjajsdlk

Inputs

    
name:
    description: The name of the PPA
    required: true
    type: str

ensure:
    default: present
    description: Ensure the PPA is present or absent
    required: false
    type: str

project:
    description: The name of the project owning the PPA
    required: true
    type: str

description:
    default: A PPA for <name>
    description: The launchpad description for the PPA
    required: false
    type: str

displayname:
    default: <name>
    description: The launchpad display name for the PPA
    required: false
    type: str

source_filter:
    default: Published
    description: By default we return a list of source_packages which are published, you
      can choose to remove the filter by setting this to '*' or to use a different source
      status. The options for source_status are Pending, Published, Superseded, Deleted
      or Obsolete
    required: false
    type: str

Outputs

details:
  description: Facts about the PPA
  returned: always
  sample:
    authorized_size: 2048
    build_debug_symbols: false
    description: PPA for LTS foo
    displayname: foo
    external_dependencies: null
    http_etag: '"70d6b91de3d852e1bd3dbb07a6391a3342fdnnnnnnnnnnnnnnnnnnnnn"'
    name: foo
    permit_obsolete_series_uploads: false
    private: false
    publish: true
    publish_debug_symbols: false
    reference: ~project/ubuntu/foo
    relative_build_score: 0
    require_virtualized: true
    resource_type_link: https://api.launchpad.net/devel/#archive
    self_link: https://api.launchpad.net/devel/~project/+archive/ubuntu/foo
    signing_key_fingerprint: Annnnnnn655C819nnnnnn23844A6C1nnnnn6
    status: Active
    suppress_subscription_notifications: false
    web_link: https://launchpad.net/~project/+archive/ubuntu/foo
  type: dict
sources:
  description: List of source_packages published in this PPA
  returned: always
  sample:
  - component_name: main
    date_created: '2022-09-27T10:02:08.870234+00:00'
    date_made_pending: null
    date_published: '2022-09-27T10:33:30.086025+00:00'
    date_removed: null
    date_superseded: null
    display_name: linux-5.19.11 5.19.11-051911.202209270958 in jammy
    http_etag: '"nnnnnnnnnnnnnnnnnnnnnnnnnnnn-nnnnnnnnnnnnnnnnnnnnn"'
    pocket: Release
    removal_comment: null
    resource_type_link: https://api.launchpad.net/devel/#source_package_publishing_history
    scheduled_deletion_date: null
    section_name: devel
    self_link: https://api.launchpad.net/devel/~project/+archive/ubuntu/foo/+sourcepub/nnnnnnn
    source_package_name: linux-5.19.11
    source_package_version: 5.19.11-051911.202209270958
    status: Published
  type: list