Ansible Config File Update Kodekloud


Question: To manage all servers within the stack using Ansible, the Nautilus DevOps team is planning to use a common sudo user among all servers. Ansible will be able to use this to perform different tasks on each server. This is not finalized yet, but the team has decided to first perform testing. The DevOps team has already installed Ansible on jump host using yum, and they now have the following requirement:

On jump host make appropriate changes so that Ansible can use anita as the default ssh user for all hosts. Make changes in Ansible's default configuration only —please do not try to create a new config.


In jump host login as root

sudo su

Then open the ansible config

vi /etc/ansible/ansible.cfg

Add remote_user in the config file according to question and save.

remote_user= anita

Show the config

cat /etc/ansible/ansible.cfg | grep remote


Share on Google Plus

About Ashadullah Shawon

I am Ashadullah Shawon. I am a Software Engineer. I studied Computer Science and Engineering (CSE) at RUET. I Like To Share Knowledge. Learn More: Click Here
    Blogger Comment
    Facebook Comment


Post a Comment