ARTH_TASK 14…!!

Link:> https://swapnil940sukare.medium.com/arth-task-14-1-1350c2fb02ec

Link:>https://www.linkedin.com/pulse/arth-task-10-swapnil-sukare

STEP:1: PRE -REQUIRITIES:

  1. Install “ansible” in the controller node.

TO CHECK:

||cmd: ansible — version

2. Install “docker” in the controller node[from task10].

TO CHECK:

||cmd: rpm -q docker-ce

STEP:2: Launch Docker Container…

TO CHECK :

STEP:3: Install required packages in the docker container…

INSTALL SSH SERVER

INSTALL SSH CLIENT

INSTALL PASSWD

  • Set the password for root

NOTE: USE “ ssh-keygen -A” TO AVOID THE KEY ERROR.

TO CHECK :

STEP:4: Create an image of the container …

To check : cmd: “docker images”

STEP:5: Push the image into the docker hub…

STEP:6: Install docker-py library…

STEP:7: Create a playbook to pull pre-created image…

STEP:8: Create a playbook to configure httpd …

Before running playbook inventory is:

STEP:9: Run the Ansible-playbook…

  1. Run playbook task14.2.yml:

After running playbook inventory is:

2. Run playbook httpd.yml:

TO CHECK :

TASK ENDS…

Thanks for Reading…..!!!

--

--

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