Hi people,
I'm on ansible 1.4.1, and trying to use include_vars: for a role called
"firewall". I have:
firewall/tasks/main.yml, which starts with:
---
- include_vars: '{{item}}'
with_first_found:
- "{{ansible_hostname}}.yml"
- default.yml
Then I have firewall/vars/default.yml and firewall/vars/HOSTNAME.yml, where
HOSTNAME is my hostname.
However, when I include this role in a playbook and run it, I get:
PLAY [localhost]
**************************************************************
GATHERING FACTS
***************************************************************
ok: [localhost]
TASK: [firewall | include_vars ]
**********************************************
fatal: [localhost] => input file not found at
/Users/anandb/git/gii-ansible/playbooks/roles/firewall/vars/None or
/Users/anandb/git/gii-ansible/playbooks/None
FATAL: all hosts have already failed -- aborting
Any idea what is happening here?
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.