includes in roles

19 views
Skip to first unread message

Tim

unread,
Feb 27, 2017, 7:20:33 PM2/27/17
to ansible...@googlegroups.com
With the introduction of static/dynamic includes, how does one use "include" in a role?

Previously I would say this

- name: foo
  include: bar.yaml


and it would find bar.yaml in the tasks/ directory of my role.

Now, however, it raises and exception about 

the file_name '/path/to/top-level/playbooks/bar.yaml' does not exist, or is not readable"

where it seems to be looking for bar.yaml in the directory where my playbook exists and not from my role's tasks directory

-tim

Tim

unread,
Feb 27, 2017, 7:22:46 PM2/27/17
to ansible...@googlegroups.com
nm

spel3ng of mai yah-mul fiel was incurekt

user error.
Reply all
Reply to author
Forward
0 new messages