Skip to main content

Posts

Showing posts with the label Installation steps

Steps to Set Up Ansible on AWS EC2 Instances

Ansible Setup on AWS Ansible Setup on AWS Step 1: Launch Instances Launch Amazon Linux instances on AWS: Control Node: The server to install Ansible. Managed Nodes: Servers managed by Ansible. Step 2: Install Ansible on the Control Node Update the system: sudo yum update -y Install EPEL Repository: sudo amazon-linux-extras install epel -y Install Ansible: sudo yum install ansible -y Step 3: Create a User on All Servers Create a user, for example, ansibleuser : sudo useradd ansibleuser sudo passwd ansibleuser Step 4: Grant Sudo Permission to the User Edit the sudoers file: sudo visudo Add this line: ansibleuser ALL=(ALL) NOPASSWD: ALL Step 5: Setup Passwordless Authentication on All Servers Edit SSH configuration: sudo vim /etc/ssh/sshd_config Set PasswordAuthentication to yes and restart SSH: sudo service ssh...

Ansible Installation on Amazon Linux

Ansible on Amazon Linux Ansible on Amazon Linux Ansible is a popular open-source automation tool used for configuration management, application deployment, and task automation. Running Ansible on Amazon Linux is efficient, especially for managing AWS infrastructure, as it integrates seamlessly with AWS services. Key Points for Using Ansible on Amazon Linux: 1. Installing Ansible on Amazon Linux Update the system: sudo yum update -y Install EPEL Repository: sudo amazon-linux-extras install epel -y Install Ansible: sudo yum install ansible -y 2. Configuring Ansible on Amazon Linux Ansible Inventory: Modify the inventory file: sudo nano /etc/ansible/hosts SSH Access: Ensure password-less SSH access is configured for the managed nodes. 3. Running Playbooks Create Playbooks: --- - hosts: webservers tasks: - name: Install Nginx yum: name: nginx ...