Hello list,

I have a role with the following structure:

$ tree
> .
> ├── files
> │   └── powerline
> │       └── [...]
> └── tasks
>     └── main.yml


And my tasks file has, among other tasks, the following one:

- name: symlink custom config files
>   file: src=powerline dest=~/.config/powerline state=link force=yes


When I execute this task, my ~/.config/powerline becomes:

ls -l ~/.config/powerline
> lrwxrwxrwx. 1 borges borges 9 Apr 20 14:45 /home/borges/.config/powerline
> -> powerline


As you can see, it doesn't resolve to the correct place (apparently it's
using a relative smylink). How can I specify `file` to use absolute paths
to role files without hardcode the entire path? Or there is another
solution to this problem?

Thank you,
Paulo

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CACqjoVmzyOfDjZKzmc3tBe%2BfM-6cEG_LGoj%3Dwt2Dbus%3DSmYX4Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to