Skip to content

An Ansible playbook is an organized unit of scripts that defines work for a server configuration managed by the automation tool Ansible written in YAML language. This repository contains playbooks to configure docker, to set up an HDFS cluster and to configure httpd apache webserver while making the service idempotent.

Notifications You must be signed in to change notification settings

ishikasinha-d/Ansible-playbook

Repository files navigation

Ansible-playbook

➡️ dockerpb.yml is 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 docker container and expose it to the public

🔹 Copy the html code in /var/www/html directory and start the web server


Other files associated with dockerpb.yml are: mywebpage.html

Linkedin Blog URL: https://www.linkedin.com/pulse/configuring-docker-using-ansible-ishika-sinha

➡️ Playbooks to set up HDFS cluster

namenode_pb.yml is to configure Namenode
datanode_pb.yml is to configure Datanode

Other files associated with namenode_pb.yml are: nn_core.xml and nn_hdfs.xml
Other files associated with datanode_pb.yml are: dn_core.xml and dn_hdfs.xml 

Linkedin Blog URL: https://www.linkedin.com/pulse/ansible-playbook-set-up-hdfs-cluster-ishika-sinha

➡️ Playbook to configure httpd apache webserver and make the service idempotent. For this, we make use of handlers.

apache_webserver_pb.yml 

Other files associated with apache_webserver_pb.yml are: vars.yml and web.conf 

Linkedin Blog URL: https://www.linkedin.com/pulse/making-httpd-service-idempotent-using-ansible-ishika-sinha

➡️ To configure Reverse Proxy i.e. Haproxy and update its configuration file automatically each time a new Managed node (Configured With Apache Webserver) joins the inventory.

Playbook: haproxy_pb.yml
Configuration file: haproxy.cfg.j2

Linkedin Blog URL: https://www.linkedin.com/pulse/configuring-haproxy-updating-dynamically-using-ansible-ishika-sinha

About

An Ansible playbook is an organized unit of scripts that defines work for a server configuration managed by the automation tool Ansible written in YAML language. This repository contains playbooks to configure docker, to set up an HDFS cluster and to configure httpd apache webserver while making the service idempotent.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages