tuxinvader.launchpad.prune_ppa (1.0.4) — module

Prune a PPA for size, by removing the oldest source packages

| "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.4


Add to requirements.yml

  collections:
    - name: tuxinvader.launchpad
      version: 1.0.4

Description

Prune a PPA for size, by removing the oldest source packages

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
# Prune the PPA down to 2 source packages
- name: Prune mainline PPA to most recent 2 releases
  prune_ppa:
    name: lts-mainline
    project: ~tuxinvader
    max_sources: 2
  environment:
    LP_ACCESS_TOKEN: kjaslkdjalksd
    LP_ACCESS_SECRET: alskjajsdlk

Inputs

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

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

max_sources:
    default: 2
    description: The number of source packages to leave
    required: false
    type: int

Outputs

count:
  description: The number of packages removed
  returned: always
  sample: 1
  type: int
pruned:
  description: Dictionary of package names and publication dates
  returned: always
  sample:
    linux-5.19.10: '2022-09-21T14:28:54.544426+00:00'
  type: dict