Re: [ansible-project] blanket-apply delegate_to to roles

2017-06-26 Thread Koteswara Rao Sakhamuri
Hi Dmitry Makovey, Im also looking for the same solution, To run the play on other machine in the same task like this... - hosts: webservers roles: - { role: iinstall_web} - { role: delegated_role, delegate_to: "{{ central_server }}" } I have tried different options but failed. did you fi

Re: [ansible-project] blanket-apply delegate_to to roles

2014-10-07 Thread Dmitry Makovey
On Sunday, October 5, 2014 12:02:21 PM UTC-6, Michael DeHaan wrote: > > What you have above, say if you had 500 hosts, would run each step 500 > times and likely overwhelm that server. > > actually that is the intent. My example was "simplified" so it's easy to understand mechanics of it, but o

Re: [ansible-project] blanket-apply delegate_to to roles

2014-10-05 Thread Michael DeHaan
Sounds like you should just configure that one server directly and missed the part of Ansible that allows managing specific host groups. - hosts: name_of_server roles: - ... What you have above, say if you had 500 hosts, would run each step 500 times and likely overwhelm that server. On

[ansible-project] blanket-apply delegate_to to roles

2014-10-03 Thread Dmitry Makovey
I've got a case where I'd like to delegate contents of entire role over to another box. Adding "delegate_to" to every task seems strenuous and not reusable since I may use this role without delegation. My attempt at simulating what is done with { role: X, tags: A } did not succeed: $ cat roles