From 89a27120e9906882a48a3964c589abbd28ade776 Mon Sep 17 00:00:00 2001 From: Sven Velt Date: Thu, 3 Dec 2020 14:48:28 +0100 Subject: [PATCH] Try to ead more OS variables/files --- roles/timesync-enabled/tasks/main.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/roles/timesync-enabled/tasks/main.yml b/roles/timesync-enabled/tasks/main.yml index c09b4a1..9ac8e9c 100644 --- a/roles/timesync-enabled/tasks/main.yml +++ b/roles/timesync-enabled/tasks/main.yml @@ -27,7 +27,8 @@ - name: Include OS dependent variables include_vars: "{{ item }}" with_first_found: - - "os_{{ (ansible_os_family|lower).split(' ')[0] }}.yml" + - "os_{{ (ansible_os_family|default('Not-Available')|lower).split(' ')[0] }}.yml" + - "os_{{ (ansible_lsb.id|default('Not-Available')|lower).split(' ')[0] }}.yml" - "os_defaut.yml"