Thanks for the tip about delegation, donno how I have not used it yet. Do 
you have to change security settings when you do though? I am getting an 
SSH unreachable error on just that one delegate task (not the rest of them).

On Monday, August 22, 2016 at 11:45:58 AM UTC-4, Josh Smift wrote:
>
> SO> Anybody know of a way to deploy a template to multiple servers, but 
> SO> have each configuration simultaneously centralized on another server? 
>
> How about delegate_to? 
>
>   - hosts: myservers 
>
>     tasks: 
>
>       - name: put foo on myservers 
>         template: 
>           src: foo.txt.j2 
>           dest: /etc/foo.txt 
>
>       - name: put foo for myservers onto centralserver 
>         template: 
>           src: foo.txt.j2 
>           dest: "/srv/myservers/{{ inventory_hostname }}" 
>         delegate_to: centralserver 
>
> That seems to work for me; it's not *simultaneous* simultaneous, but it's 
> in one playbook anyway. :^) 
>
>                                       -Josh ([email protected] <javascript:>) 
>
> (apologies for the automatic corporate disclaimer that follows) 
>
>
>
>
> This email is intended for the person(s) to whom it is addressed and may 
> contain information that is PRIVILEGED or CONFIDENTIAL. Any unauthorized 
> use, distribution, copying, or disclosure by any person other than the 
> addressee(s) is strictly prohibited. If you have received this email in 
> error, please notify the sender immediately by return email and delete the 
> message and any attachments from your system. 
>

-- 
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/9dc18472-c01f-44cc-a8d8-def86e35b50c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to