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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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.