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"