ansible.posix.rpm_ostree_upgrade module – Manage rpm-ostree upgrade transactions

Note

This module is part of the ansible.posix collection (version 1.5.4).

You might already have this collection installed if you are using the ansible package. It is not included in ansible-core. To check whether it is installed, run ansible-galaxy collection list.

To install it, use: ansible-galaxy collection install ansible.posix. You need further requirements to be able to use this module, see Requirements for details.

To use it in a playbook, specify: ansible.posix.rpm_ostree_upgrade.

New in ansible.posix 1.5.0

Synopsis

  • Manage an rpm-ostree upgrade transactions.

Requirements

The below requirements are needed on the host that executes this module.

  • rpm-ostree

Parameters

Parameter

Comments

allow_downgrade

boolean

Allow for the upgrade to be a chronologically older tree.

Choices:

  • false ← (default)

  • true

cache_only

boolean

Perform the transaction using only pre-cached data, do not download.

Choices:

  • false ← (default)

  • true

os

string

The OSNAME upon which to operate.

Default: ""

peer

boolean

Force peer-to-peer connection instead of using a system message bus.

Choices:

  • false ← (default)

  • true

Examples

- name: Upgrade the rpm-ostree image without options, accept all defaults
  ansible.posix.rpm_ostree_upgrade:

- name: Upgrade the rpm-ostree image allowing downgrades
  ansible.posix.rpm_ostree_upgrade:
    allow_downgrade: true

Return Values

Common return values are documented here, the following are the fields unique to this module:

Key

Description

msg

string

The command standard output

Returned: always

Sample: "No upgrade available."

Authors

  • Adam Miller (@maxamillion)