community.general.rpm_ostree_pkg (8.5.0) — module

Install or uninstall overlay additional packages

| "added in version" 2.0.0 of community.general"

Authors: Dusty Mabe (@dustymabe), Abhijeet Kasurde (@Akasurde)

Install collection

Install with ansible-galaxy collection install community.general:==8.5.0


Add to requirements.yml

  collections:
    - name: community.general
      version: 8.5.0

Description

Install or uninstall overlay additional packages using C(rpm-ostree) command.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Install overlay package
  community.general.rpm_ostree_pkg:
    name: nfs-utils
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Remove overlay package
  community.general.rpm_ostree_pkg:
    name: nfs-utils
    state: absent

Inputs

    
name:
    aliases:
    - pkg
    description:
    - Name of overlay package to install or remove.
    elements: str
    required: true
    type: list

state:
    choices:
    - absent
    - present
    default: present
    description:
    - State of the overlay package.
    - V(present) simply ensures that a desired package is installed.
    - V(absent) removes the specified package.
    type: str

Outputs

action:
  description: Action performed.
  returned: always
  sample: install
  type: str
changed:
  description: State changes.
  returned: always
  sample: true
  type: bool
cmd:
  description: Full command used for performed action.
  returned: always
  sample: rpm-ostree uninstall --allow-inactive --idempotent --unchanged-exit-77 nfs-utils
  type: str
packages:
  description: A list of packages specified.
  returned: always
  sample:
  - nfs-utils
  type: list
rc:
  description: Return code of rpm-ostree command.
  returned: always
  sample: 0
  type: int
stderr:
  description: Stderr of rpm-ostree command.
  returned: always
  sample: ''
  type: str
stdout:
  description: Stdout of rpm-ostree command.
  returned: always
  sample: Staging deployment...done\n...
  type: str