fix: alternatives module is Debian only

This commit is contained in:
Ben Grande 2025-02-24 11:21:41 +01:00
parent 18a0244dc3
commit 3c9e222a1d
No known key found for this signature in database
GPG Key ID: 00C64E14F51F9E56

@ -1,14 +1,18 @@
{#
SPDX-FileCopyrightText: 2024 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-FileCopyrightText: 2024 - 2025 Benjamin Grande M. S. <ben.grande.b@gmail.com>
SPDX-License-Identifier: AGPL-3.0-or-later
#}
{% if grains['nodename'] != 'dom0' -%}
{% if grains['os_family']|lower == 'debian' -%}
"{{ slsdotpath }}-set-default-terminal-to-xterm":
cmd.run:
- name: update-alternatives --verbose --set x-terminal-emulator /usr/bin/xterm
- runas: root
{% endif -%}
{% endif -%}