Note down the public key and copy it over onto other machines. Generate the SSH-keyPair for ansible -t rsa -b 4096 -C "ansible"Ĭopy the id_rsa.pub file, to the target node Ansible /home/ansible.ssh/home directory. This user should have appropriate sudo privileges. Ansible User Setup in Controller NodeĬreate ansible remote user to manage the installation from Ansible Controller node. Here is a quick guide of creating and setting up ansible user in controller and target nodes. If you are not sure how to launch an ECS instance in Alibaba Cloud, refer to this documentation. To follow this tutorial, you will need to have Alibaba Cloud Elastic Compute Service (ECS) instances. Extending this diagram, we are going to create playbooks that will manage different users with their sudoers privilege in the target node. The diagram shows an Ansible controller node managing various nodes using SSH protocol. We will start by defining the architecture, as shown in the diagram below. In this article, we will learn how to manage users using Ansible in an Alibaba Cloud environment. Tech Share is Alibaba Cloud's incentive program to encourage the sharing of technical knowledge and best practices within the cloud community. By Anish, Alibaba Cloud Tech Share Author.
0 Comments
Leave a Reply. |