Ansible Config File Update

Author:

Ansible Config File Update

Task :

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 ravi 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.

Solution :

root@jump_host /# vi /etc/ansible/ansible.cfg

change

#remote_user = root

to

remote_user = ravi

Leave a Reply

Your email address will not be published. Required fields are marked *