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
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| name | string | yes | The generic name of the link group (e.g. editor, java) | |
| path | string | yes | The path to the real alternative | |
| link | string | The path to the symlink for the alternative | ||
| priority | int | 50 | The priority of the alternative | |
| state | string | present | Whether 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