If I have something like this:
- include_vars: this_file_doesnt_exist.yml
ansible will throw the error "input file not found at ..." and stop the provisioning process.
I'm wondering if it's possible to allow the provisioning process to continue if the file isn't found.
My use case is the following:
- try to load variables file
- execute tasks if those variables exist
Example:
- include_vars: aptcacher.yml
- name: use apt-cache
template: src=01_proxy.j2 dest=/etc/apt/apt.conf.d/01_proxy owner=root group=root mode=644
sudo: true
when: aptcacher_host is defined
Ansible version: 1.9.1