Skip to content

Ansible Role linuxfabrik.lfops.dnf_versionlock

This role installs and configures the dnf versionlock plugin.

Hints:

  • Note that yum versionlock on RHEL 7 has less capabilites than the DNF variant on RHEL 8+.

Tags

dnf_versionlock

  • Installs and configures dnf versionlock.
  • Triggers: none.

Mandatory Role Variables

dnf_versionlock__versionlocks

  • List of versionlock () entries. Have a look at man yum-versionlock for RHEL7 or dnf versionlock for RHEL8.
  • Type: List of strings.

Example:

# mandatory
dnf_versionlock__versionlocks:
  - 'enterprise-search-0:8.7.*' # pin to 8.7.x, only allowing patch updates; only works on RHEL8

License

The Unlicense

Author Information

Linuxfabrik GmbH, Zurich