Commit efc005b9 authored by Chris's avatar Chris
Browse files

Skip gathering OS specific vars if they don't exist

parent b6d2e987
......@@ -19,12 +19,13 @@
- name: Gather OS specific vars
include_vars: '{{ item }}'
with_first_found:
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}.yml
- vars/{{ ansible_os_family | lower }}.yml
- defaults/main.yml
- files:
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_release | lower }}.yml
- vars/{{ ansible_distribution | lower }}-{{ ansible_distribution_major_version | lower }}.yml
- vars/{{ ansible_distribution | lower }}.yml
- vars/{{ ansible_os_family | lower }}.yml
skip: true
- include_tasks: '{{ item }}'
with_first_found:
......@@ -35,4 +36,4 @@
- tasks/bootstrap_{{ ansible_os_family | lower }}.yml
tags: bootstrap
...
# vi: set ts=2 sts=2 sw=2 et ft=yaml:
# vi: set ts=2 sts=2 sw=2 et ft=yaml:
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment