Hi Team ,
I have 10 Linux hosts require to run same command at a time. Could you please suggest best way to do this scenario . I tried using ssh module in tasks but I have to create 10 tasks for 10 hosts to execute the same command. Is there a better way to do this ?
Thanks
Ramesh
try Ansible, it will help you
Once you have installed Ansible and added some hosts to the inventory file, typically /etc/ansible/hosts . you can try to connect to your hosts. By default a connection will be made with ssh keys, but you can also specify a username and password.
https://networklore.com/ansible/
Thanks,
Ajeet
thanks for the quick reply, I want to include restarts as a part of deployment job . +
Thanks
ramesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.