diff --git a/tasks/main.yml b/tasks/main.yml index ed12d9c..db13e1e 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -1,2 +1,8 @@ --- -- include: "{{ ansible_os_family }}.yml" \ No newline at end of file +- name: Include tasks only if one of the files exist, otherwise skip the task + include_tasks: + file: "{{ item }}" + with_first_found: + files: + - "{{ ansible_os_family }}.yml" + skip: True