Re: [ansible-project] Running ansible playbook on two hosts

2022-03-08 Thread Netanel Peretz
Yup exactly what I was looking for. I read more about it with your link Thanks!!! On Tuesday, March 8, 2022 at 3:12:46 PM UTC+2 ril...@gmail.com wrote: > Hi Netanel, > > You can use delegate_to for this. > > > https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#delegat

Re: [ansible-project] Running ansible playbook on two hosts

2022-03-08 Thread Rilindo Foster
Hi Netanel, You can use delegate_to for this. https://docs.ansible.com/ansible/latest/user_guide/playbooks_delegation.html#delegating-tasks - Rilindo > On Mar 8, 2022, at 4:16 AM, Netanel Peretz wrote: > > Hey, > I want to be able to use a playbook to run a task on host1 then run a task on

Re: [ansible-project] Running ansible playbook on two hosts

2022-03-08 Thread dulhaver via Ansible Project
I don't understand 100% what you want to do. But generally I have learned any TASK can be sent to localhost with a preceding delegate_to: localhost so you have a bunch of hosts your playbook runs against and some TASKs inside that playbok you want to run against your localhost (exclusively) -

[ansible-project] Running ansible playbook on two hosts

2022-03-08 Thread Netanel Peretz
Hey, I want to be able to use a playbook to run a task on host1 then run a task on localhost(ansible host) and then run another task on host1 Is that supposed to be as simple as copying something like this and changing the hostname and the task that comes after that? Is there a better way to do