Posts

Showing posts from August, 2020

Ansible Task 2

Image
 Ansible Task  2 Task 2 *Statement :* *Deploy Web Server on AWS through ANSIBLE!* ♦️Provision EC2 instance through ansible. ♦️Retrieve the IP Address of instance using dynamic inventory concept. ♦️Configure the web server through ansible! ♦️Create role for webserver to customize the Instance and deploy the webpage to root directory.  *Optional :* *Write a playbook for testing of the tasks.* *For Example: If the task is installation of httpd package then for checking the status of package, ansible has the module named as package_facts.* *just like that search modules for checking status of each task!* *if u don't find any module then command module can be useful* *Complete process have to be automated! Ansible role has a folder named as test, write the testing playbook there! Summary : One Click Instance Launched and Web Server Deployed! Instance lauch through playbook user create and sudo permission key transfer Create New user  key transfer key expose Playbook run a...

Ansible Task1

Image
Ansible Ansible is an open-source software provisioning, configuration management, and application-deployment tool enabling infrastructure as code.It runs on many Unix-like systems, and can configure both Unix-like systems as well as Microsoft Windows. It includes its own declarative language to describe system configuration. Ansible was written by Michael DeHaan and acquired by Red Hat in 2015. Ansible is agentless, temporarily connecting remotely via SSH or Windows Remote Management (allowing remote PowerShell execution) to do its tasks. Task Description Write an Ansible PlayBook that does the following operations in the managed nodes: 🔹 Configure Docker 🔹 Start and enable Docker services 🔹 Pull the httpd server image from the Docker Hub 🔹 Run the httpd container and expose it to the public 🔹 Copy the html code in /var/www/html directory and start the web server. *Additional task for DevOps AL and Hybrid Multi Cloud trainees: 🔹 Configure a Kubernetes Clust...