DevOps(Day-69): Understanding Configuration Management with Ansible

 

  • What's this Ansible?

  • How Ansible works?

  • Task-01: Ansible Master Setup

Ansible is an open-source automation tool, or platform, used for IT tasks such as configuration management, application deployment, intraservice orchestration, and provisioning.

Ansible uses playbook to describe automation jobs, and playbook uses very simple language i.e. YAML (It’s a human-readable data serialization language & is commonly used for configuration files, but could be used in many applications where data is being stored)which is very easy for humans to understand, read and write. Hence the advantage is that even the IT infrastructure support guys can read and understand the playbook and debug if needed (YAML – It is in human-readable form).

In Ansible, there are two categories of computers: the control node and managed nodes. The control node is a computer that runs Ansible. There must be at least one control node, although a backup control node may also exist. A managed node is any device being managed by the control node.

Ansible works by connecting to nodes (clients, servers, or whatever you're configuring) on a network, and then sending a small program called an Ansible module to that node. Ansible executes these modules over SSH and removes them when finished. The only requirement for this interaction is that your Ansible control node has login access to the managed nodes. SSH keys are the most common way to provide access, but other forms of authentication are also supported.

ac indicator Continuare printre ansible controller Căldură Expirat Ruginit

  • Installation of Ansible on AWS EC2 (Master Node)

    1. Create an instance and name it Master. This server will be used as a master Ansible server.

    2. Login to the server and create an ansible repository on the server.

      sudo apt-add-repository ppa:ansible/ansible

    3. Now install ansible on the install by following the below command.

      • sudo apt update && sudo apt install -y ansible

Thanks for reading my article. Have a nice day

Comments

Popular posts from this blog

DevOps(Day-97): Meta-Arguments in Terraform

DevOps(Day-95): Auto Scaling with Terraform

DevOps (Day-1) Introduction