Is it possible to use files from the "playbook" layer for the "copy" module?

13 views
Skip to first unread message

General Luken

unread,
Nov 28, 2016, 7:05:30 PM11/28/16
to Ansible Project
Hi!
What I mean by the title: In roles we can have a "files" directory, with files that could be copied to server. I would like to have those files outside of the role, they should be provided by my playbook and not the role. What is a recommended way of achieving it?

Best wishes.

Brian Coca

unread,
Nov 29, 2016, 12:50:57 PM11/29/16
to ansible...@googlegroups.com
Just put them in files/ directory at play level, that is in the search path for copy, it will try the role's files/ first so that must not contain the file in that case.


----------
Brian Coca
Reply all
Reply to author
Forward
0 new messages