alternatives

Collection: community.general

Full Name: parallax.community.general.alternatives

Aliases: community.general.alternatives, alternatives

Synopsis

Manage symbolic links in the update-alternatives system

Parameters

NameTypeRequiredDefaultDescription
namestringyesThe generic name of the link group (e.g. editor, java)
pathstringyesThe path to the real alternative
linkstringThe path to the symlink for the alternative
priorityint50The priority of the alternative
statestringpresentWhether the alternative should be present or absent

Example

- name: Make Python 3.11 the default python3
  alternatives:
    name: python3
    path: /usr/bin/python3.11
    link: /usr/bin/python3
    priority: 100
    state: present