ansible/ansible — pull request #4721 by bennojoy (2013-10-29 14:23:07+00:00)
Title: This PR would enable variable files to be added during a play run.

The module included with this PR allows loading variables from a yaml file similar to vars_files but from a task. this would be specially useful for conditionally loading vars file from within a role. This would be similar to any other tasks so you can add vars files via with_* for first_available_file or just plain - include_files: a.yml, and conditionally load vars file via - include_files: "{{ ansible_os_distribution }}.yml"