using files folder for storing files

35 views
Skip to first unread message

Suporter

unread,
Apr 24, 2017, 11:37:33 AM4/24/17
to Ansible Project
when we create a roles folder, there is a folder called files in it, can i use it for storing zip files or whatever i would like to store ..if yes how can i reference that in playbook, should i mention the location or is there an ansible way of referring it

Kai Stian Olstad

unread,
Apr 24, 2017, 11:44:53 AM4/24/17
to ansible...@googlegroups.com

Suporter

unread,
Apr 24, 2017, 12:06:07 PM4/24/17
to Ansible Project, ansible-pr...@olstad.com
pahting should be changed to pathing  :p and also i dont know how to use it in playbook

Suporter

unread,
Apr 25, 2017, 2:28:42 AM4/25/17
to Ansible Project
How we should use the files folder created under roles, if i am downloading a file from url and want to save it under the files folder, how can i mention that in playbook, should that be the full path? or is there an ansible way of doing it?

J Hawkesworth

unread,
Apr 25, 2017, 3:01:42 AM4/25/17
to Ansible Project
I probably wouldn't do that as I want to keep my ansible roles and playbooks in source control.  So I would probably create a downloads folder on my ansible controller in some known location that I could either hard code into my playbooks - something like /usr/share/downloads perhaps or alternatively set the path using a group variable.

Suporter

unread,
Apr 25, 2017, 3:19:45 AM4/25/17
to Ansible Project
thanks for the reply


On Monday, April 24, 2017 at 9:07:33 PM UTC+5:30, Suporter wrote:
Reply all
Reply to author
Forward
0 new messages