Upgrade to Pro — share decks privately, control downloads, hide ads and more …

DEPLOYING WORDPRESS BLOG USING DOCKER COMPOSE ...

DEPLOYING WORDPRESS BLOG USING DOCKER COMPOSE & ANSIBLE ON AWS​

Deploying using Ansible on AWS

Ramit Surana

October 11, 2018
Tweet

More Decks by Ramit Surana

Other Decks in Programming

Transcript

  1. WHAT IS ANSIBLE ? Ansible is an open source tool

    for configuring and managing servers. Written in Python. It works on 22 Port using SSH protocol. It combines multi-node software deployment, adhoc task execution, and configuration management. The system uses YAML to express reusable descriptions of systems. (ansible playbook) Similar tools are Chef, Puppet and Saltstack.
  2. ANSIBLE TERMS Dynamic Inventory - /etc/ansible/hosts Config File - /etc/ansible/ansible.cfg

    Ansible Galaxy - https://galaxy.ansible.com/ Ansible Tower - https://www.ansible.com/products/tower
  3. STEPS TO FOLLOW Create a VPC - ansible-playbook vpc-provision.yml -i

    hosts –vv Create an EC2 - ansible-playbook provision.yml -i hosts –vv Configure EC2 - ansible-playbook ec2-configure.yml -vv --private-key <keypair> Deploy ELK using Docker Compose - ansible-playbook elk-deploy.yml -vv --private-key <keypair> Deploy WordPress & MariaDB - ansible-playbook app-deploy.yml -vv --private-key <keypair>