Comments on: How to Use Ansible Playbooks to Automate Complex Tasks on Multiple Remote Servers – Part 2 https://www.tecmint.com/use-ansible-playbooks-to-automate-complex-tasks-on-multiple-linux-servers/ Tecmint - Linux Howtos, Tutorials, Guides, News, Tips and Tricks. Wed, 03 Nov 2021 08:41:33 +0000 hourly 1 By: wajid shaikh https://www.tecmint.com/use-ansible-playbooks-to-automate-complex-tasks-on-multiple-linux-servers/comment-page-1/#comment-1633564 Wed, 03 Nov 2021 08:41:33 +0000 http://www.tecmint.com/?p=16083#comment-1633564 Hello TecMint Team,

Need your small help, I want to collect multi-data from at least 50 servers like their RAM, os-version, Disk space,kernel-version, and so on things, I have created one script there I am able to get data as required at the remote host, but I want that all 50 remote host data which available at there /tmp/report-1. I want to fetch and override all 50 server data into one file at a local ansible machine.

Thanks in advance for your help.

Best Regards,
Wajid Shaikh

]]>
By: Khushal Bisht https://www.tecmint.com/use-ansible-playbooks-to-automate-complex-tasks-on-multiple-linux-servers/comment-page-1/#comment-1011750 Thu, 05 Jul 2018 10:45:02 +0000 http://www.tecmint.com/?p=16083#comment-1011750 Hi All

Can anyone tell me how to set hostname using ansible. Please find the given below requirement.

I have 100 servers and I want set hostname like web01 for first server and second server web02 and so on. Please help me out for the same.

I have also use ansible module hostname but it works only when I am set same hostname in 100 servers.

]]>
By: kapendra https://www.tecmint.com/use-ansible-playbooks-to-automate-complex-tasks-on-multiple-linux-servers/comment-page-1/#comment-972958 Mon, 26 Feb 2018 07:47:24 +0000 http://www.tecmint.com/?p=16083#comment-972958 In reply to anil.

I got the fix.

its all about proper indentation of the file.

]]>
By: Prasanth https://www.tecmint.com/use-ansible-playbooks-to-automate-complex-tasks-on-multiple-linux-servers/comment-page-1/#comment-939325 Thu, 23 Nov 2017 01:51:45 +0000 http://www.tecmint.com/?p=16083#comment-939325 Hi, When I run multiple server automation on ansible, it generates reports individually for each servers. that is making me tough when testing multiple servers at a time and wanted to how many failed and how many passed. is there any way that i can get a single report (resulting all servers) in ansible automation?

]]>
By: prashant https://www.tecmint.com/use-ansible-playbooks-to-automate-complex-tasks-on-multiple-linux-servers/comment-page-1/#comment-886312 Thu, 27 Apr 2017 11:32:09 +0000 http://www.tecmint.com/?p=16083#comment-886312 In reply to sumit kumar.

you need to change your hosts= in the hosts group you added in you anisble host.

example here in tecmint its -“hosts: webservers” replace webservers with entry you did in /etc/anisble/hosts

[group]
ip address

]]>