workaround id not always being set in lsb_release

This commit is contained in:
nd 2024-03-24 00:35:58 +01:00
parent 1ed3ab7e23
commit 2534a45ab2

View file

@ -1,7 +1,7 @@
--- ---
- name: workaround for raspbian naming - name: workaround for raspbian naming
set_fact: set_fact:
package_distro: "{% if ansible_lsb.id == 'Raspbian' %}raspbian{% else %}{{ ansible_distribution|lower }}{% endif %}" package_distro: "{% if ansible_lsb.id|d('') == 'Raspbian' %}raspbian{% else %}{{ ansible_distribution|lower }}{% endif %}"
- name: install default packages and repos - name: install default packages and repos
include_role: include_role:
name: packages name: packages