nickpack/ansible-role-android-sdk

Varible defaults not loaded

Closed this issue · 1 comments

In the following conditions

  • ubuntu 16.04
  • ansible 2.3.2.0
  • installed role from from ansible glaxy

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:

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