-
Notifications
You must be signed in to change notification settings - Fork 23.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative paths don't work correctly when running multiple playbooks from one playbook #12524
Comments
This seems to have done the trick, thanks! |
I am also having the same issue still https://github.com/goozbach-ansible/broken-paths for a test case. running:
Platform: OSX Just did a |
Reopening to investigate. |
Closing This Ticket (again)Hi! We believe the above commit should resolve this problem for you. This will also be included in the next major release. If you continue seeing any problems related to this issue, or if you have any further questions, please let us know by stopping by one of the two mailing lists, as appropriate:
Because this project is very active, we're unlikely to see comments made on closed tickets, but the mailing list is a great way to ask questions, or post if you don't think this particular issue is resolved. Thank you! |
Looks good! THANKS! |
Having this issue again.
|
Issue Type:
Ansible Version:
ansible 2.0.0 (devel 41756be) last updated 2015/09/25 10:05:38 (GMT -500)
Ansible Configuration:
No changes from defaults.
Environment:
Mac OS X 10.10.4
Summary:
I have a setup where I have one playbook that includes other playbooks.
If I run
ansible-playbook
with the parent playbook, which includes other playbooks, the relative pathing for tasks inside the other playbooks seems to get stuck or messed up.If I run
ansible-playbook
with the child playbooks directly (one-by-one), relative pathing works as expected.Steps To Reproduce:
This can be reproduced using the example LAMP infrastructure example found here, in the Ansible for DevOps book repository: https://github.com/geerlingguy/ansible-for-devops/tree/master/lamp-infrastructure
I have a directory layout like this:
Inside
configure.yml
(a 'master' playbook which simply includes the two children playbooks):If I run the varnish or memcached
main.yml
playbooks directly, everything works fine:However, if I run the
configure.yml
playbook that includes the two main.yml playbooks, it seems Ansible mixes up the paths for tasks likecopy
.Everything works fine in Ansible <= 1.9.3, but fails in Ansible 2.0.0.
Expected Results:
Playbook completes successfully whether run standalone or as part of the master
configure.yml
playbook.Actual Results:
Playbook completes successfully when run standalone.
Playbook results in relative pathing error when run as part of the master
configure.yml
playbook:The text was updated successfully, but these errors were encountered: