nickpack / ansible-role-android-sdk

Install Android SDK tools and packages, headless, with ansible.
Other
40 stars 32 forks source link

Varible defaults not loaded #15

Closed timdaman closed 7 years ago

timdaman commented 7 years ago

In the following conditions

I get the following error failed: [localhost] (item=/galaxy-roles/nickp666.android-sdk/vars/default.yml) => {"ansible_facts": {}, "failed": true, "item": "/galaxy-roles/nickp666.android-sdk/vars/default.yml", "message": "Unable to find 'Debian.yml' in expected paths."}

It appears the following line is the cause

  include_vars: "{{ansible_os_family}}.yml"
  with_first_found:
    - "{{ ansible_distribution }}.yml"
    - "{{ ansible_os_family }}.yml"
    - "default.yml"

include_vars should be looking for the item from with_first_found:

nickpack commented 7 years ago

Thanks for the bug report, I'll try and take a look at this later today.