workaround id not always being set in lsb_release
This commit is contained in:
parent
1ed3ab7e23
commit
2534a45ab2
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue