Task Information
The Nautilus Application development team wanted to test some applications on app servers in Stratos Datacenter. They shared some pre-requisites with the DevOps team, and packages need to be installed on app servers. Since we are already using Ansible for automating such tasks, please perform this task using Ansible as per details mentioned below:
Create an inventory file /home/thor/playbook/inventory on jump host and add all app servers in it.
Create an Ansible playbook /home/thor/playbook/playbook.yml to install wget package on all app servers using Ansible yum module.
Make sure user thor should be able to run the playbook on jump host.
Enter fullscreen mode
Exit fullscreen mode
Task Solutions
✅ Part 1: Lab Step-by-Step Guidelines (Technical & Precise)
Step 1: Generate SSH Key on Jump Host (as thor)
ssh-keygen
Enter fullscreen mode
Exit fullscreen mode
Step 2: Copy Public Key to Each App Server
Run:
ssh-copy-id [email protected] ssh-copy-id [email protected] ssh-copy-id…