Interpret ~ symbol in the playbook file as a reference to the user's home directory
Following the *nix convention, expand a leading ~ symbol in any path value in the playbook file to the user's home directory. For example, if the user's home directory is /home/user
, then this configuration:
output:
dir: ~/tmp/site
should be expanded to:
output:
dir: /home/user/tmp/site
Currently, this symbol is being interpreted literally. This could put the user in a bad situation. If the user attempts to delete a folder with the name ~, the user could inadvertently delete all files in their home directory if this symbol is not quoted.
Done criteria:
-
A leading ~ in a path value in the playbook file should be expanded to the user's home directory -
Add tests to verify this behavior -
Mention this feature in the documentation for the playbook
Edited by Dan Allen