delegate_to does work, I suspect your issues stem from the variable not being defined or being empty, delegate_to will fallback to localhost.
Brian Coca
delegate_to does work, I suspect your issues stem from the variable not being defined or being empty, delegate_to will fallback to localhost.
Brian Coca
--To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/CADn%2BHsymZj3jg1TPY5Q-%3D7785vFVG-oSuqSkMByrOFRRh5RQDA%40mail.gmail.com.
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.
Hi all,
My understanding of delegate_to is that it runs the task on the designated host, once for each host in the current group, and with the current host’s variables.
msg: Destination /srv/sp/web/core not writable
The directory does exist on the delegate_to host:
(sp_devops)GoatRodeo:devops anderson$ ssh -i keys/hoopdy.id_rsa ubuntu@<proper host>
ubuntu@ip-10-2-1-174:~$ ls /srv/sp/web/core
[… stuff …]
If I add the directory to the *local* machine running Ansible, the script finds it. This is telling me that the template command is actually trying to copy to the local machine and not the delegate_to machine.
delegate_to does work, I suspect your issues stem from the variable not being defined or being empty, delegate_to will fallback to localhost.
Brian Coca
It's not saying that the directory doesn't exist, it's saying that it is not writable, do you have write permission to /srv/sp/web/core on the delegate_to machine? ls -ld /srv/sp/web/core should show what I'm interested in...