ansible-generator
|- main.yml <-- Main playbook
|- apps
|- nodejs
|- tasks,vars,defaults,etc.
|- sublime
|- scaffolds
|- git
|- node
|- vagrant
|- install
|- dmg.yml--
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 ansible-proje...@googlegroups.com.
To post to this group, send email to ansible...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/647cf28d-77cc-4ebf-84db-ec87659fe0a7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
- debug: msg="{{ playbook_dir }}"ok: [localhost] => {
"msg": "."
}So it's returning a relative path. I get this same output regardless of where I run the debug task, so this doesn't help me point to my project root if I use the playbook_dir variable in one of my roles or some other subdirectory. Incidentally, inventory_dir returns an absolute path (e.g. /etc/ansible), though the inventory directory isn't what I'm after.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/0cf0257a-c8e9-4bf3-aa4f-5a13b70ff533%40googlegroups.com.
ansible 1.7
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/856b99bd-d0f8-4fe7-b123-5d279f8c740c%40googlegroups.com.