ansible.builtin.swupd (v2.9.27) — module

Manages updates and bundles in ClearLinux systems.

| "added in version" 2.3 of ansible.builtin"

Authors: Alberto Murillo (@albertomurillo)

preview | supported by community

Install Ansible via pip

Install with pip install ansible==2.9.27

Description

Manages updates and bundles with the swupd bundle manager, which is used by the Clear Linux Project for Intel Architecture.

Usage examples

  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Update the OS to the latest version
  swupd:
    update: yes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Installs the "foo" bundle
  swupd:
    name: foo
    state: present
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Removes the "foo" bundle
  swupd:
    name: foo
    state: absent
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Check integrity of filesystem
  swupd:
    verify: yes
  • Success
    Steampunk Spotter scan finished with no errors, warnings or hints.
- name: Downgrade OS to release 12920
  swupd:
    verify: yes
    manifest: 12920

Inputs

    
url:
    description:
    - Overrides both I(contenturl) and I(versionurl).

name:
    aliases:
    - bundle
    description:
    - Name of the (I)bundle to install or remove.

state:
    choices:
    - present
    - absent
    default: present
    description:
    - Indicates the desired (I)bundle state. C(present) ensures the bundle is installed
      while C(absent) ensures the (I)bundle is not installed.

format:
    description:
    - The format suffix for version file downloads. For example [1,2,3,staging,etc]. If
      not specified, the default format is used.

update:
    description:
    - Updates the OS to the latest version.
    type: bool

verify:
    description:
    - Verify content for OS version.
    type: bool

manifest:
    aliases:
    - release
    - version
    description:
    - The manifest contains information about the bundles at certain version of the OS.
      Specify a Manifest version to verify against that version or leave unspecified to
      verify against the current version.

contenturl:
    description:
    - URL pointing to the contents of available bundles. If not specified, the contents
      are retrieved from clearlinux.org.

versionurl:
    description:
    - URL for version string download.

Outputs

stderr:
  description: stderr of swupd
  returned: always
  type: str
stdout:
  description: stdout of swupd
  returned: always
  type: str