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, I want to fetch some files from the remote server and store them in the home directory of the user executing the playbook. How do I get the 'ansible_user_dir' of the ansible control machine? I can't use '$HOME' or '~', because those statements would not work with all Ansible modules.
Brian Coca
unread,
Dec 1, 2015, 9:55:40 PM12/1/15
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
lookup('env', 'HOME) should give you the home dir of the 'current user
executing ansible'. Also ~ and $HOME should work with the fetch
module.
--
Brian Coca