Prerequisites

  1. Deploy 2 EC2 (Jenkins and Ansible) instances and configure them.
  2. Create ssh keyless authentication between Jenkins and Ansible.
  3. Need to download terraform command in the Ansible Node to run terraform commands.

Photo by Christian Wiediger on Unsplash


  1. Create an AWS EC2 instance
  2. Configure the instance with Apache Webserver.
  3. Download PHP application name “WordPress”.
  4. WordPress stores data at the backend in the MySQL Database Server.
  5. Therefore, you need to set up a MySQL server using AWS RDS service using Free Tier.
  6. Provide the…

Godaddy Domain and Sub-Domain integration with AWS Route 53


Socket Programming


- hosts: 192.168.43.109
vars:
- port_no: "8012"
- dir: "/var/www/web"
- localyum:
- name: DVD1
description: Local DVD1
baseurl: "file///dvd/AppStream"
gpgcheck: no
enabled: yes
- name: DVD2
description: Local DVD2
baseurl: "file///dvd/BaseOS"
gpgcheck: no
enabled: yes
tasks…

ifconfig enp0s3 192.168.43.1
route add -net 192.168.43.0 netmask 255.255.255.0 gw 192.168.43.1 enp0s3
ifconfig enp0s3 192.168.43.5
route add -net 192.168.43.0 netmask 255.255.255.252 gw 192.168.43.5 enp0s3
ifconfig enp0s3 192.168.43.9
route add -net 192.168.43.0 netmask 255.255.255.252 gw 192.168.43.9 enp0s3

nslookup www.google.com
nslookup www.facebook.com

Ansible + Docker + Webserver

Neeraj Singh Negi

AWS | Openstack | GCP | Ansible | Redhat 8 Linux | Docker | Jenkins | Kubernetes | Hadoop | Python | Machine Learning

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store