Skip to content

Commit

Permalink
Fix : use relative path when using with_first_found
Browse files Browse the repository at this point in the history
'with_first_found' lookup into {files,templates} directory so we must use relative path for vars/* 
(See See ansible/ansible#14454)

$ ansible --version
ansible 2.2.0
  • Loading branch information
jfefe committed Jul 14, 2016
1 parent 04c9b12 commit 7777bd0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tasks/apt.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,15 @@
- name: Load default APT mirrors configuration
include_vars: '{{ item }}'
with_first_found:
- 'apt__default_mirrors_{{ apt__default_mirrors_lookup | lower }}.yml'
- 'apt__default_mirrors.yml'
- '../vars/apt__default_mirrors_{{ apt__default_mirrors_lookup | lower }}.yml'
- '../vars/apt__default_mirrors.yml'
when: apt__default_mirrors is undefined

- name: Load default APT sources configuration
include_vars: '{{ item }}'
with_first_found:
- 'apt__default_sources_{{ apt__default_sources_lookup | lower }}.yml'
- 'apt__default_sources.yml'
- '../vars/apt__default_sources_{{ apt__default_sources_lookup | lower }}.yml'
- '../vars/apt__default_sources.yml'
when: apt__default_sources is undefined

- name: Enable delayed APT configuration
Expand Down

1 comment on commit 7777bd0

@jfefe
Copy link
Contributor Author

@jfefe jfefe commented on 7777bd0 Jul 14, 2016

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.