ARTH TASK 14.3

ARTH TASK 14.3

Task Description??

?? 14.3 Create an ansible Playbook which will dynamically load the variable file named the same as OS_name and just by using the variable names we can Configure our target node. ( Note: No need to use when keyword here. )

Step 1: Launching 3 Instances In AWS

No alt text provided for this image

Step 2: Create inventory file

cmd: vim ip.txt

No alt text provided for this image

Step 3: Install ansible software in controller node.

cmd: sudo amazon-linux-extras install ansible2

No alt text provided for this image

Step 4: Write an ansible configuration file in controller node.

cmd: vim ansible.cfg

No alt text provided for this image

Step 5: To check the list of hosts:

cmd: ansible all --list-hosts

No alt text provided for this image

Step 6: To ping hosts:

cmd: ansible all -m ping

No alt text provided for this image

Step 7: Create the variable file in the controller node.

Step 8: For RedHat OS

cmd: vim RedHat.yml

Step 9: For Ubuntu OS

cmd: vim Ubuntu.yml

No alt text provided for this image

Step 10: Create a playbook to configure webserver

cmd: vim task14.3.yml

No alt text provided for this image

Step 11: Create a Html file

cmd: vim web.html

No alt text provided for this image

Step 12: Run the Ansible playbook.

cmd: ansible-playbook task14.3.yml

No alt text provided for this image

Step 13: Now check the output.

No alt text provided for this image
No alt text provided for this image

Thank You.


要查看或添加评论,请登录

Hritik Kumar的更多文章

  • Arth-Task: 22

    Arth-Task: 22

    Task Description?? ??? Research on use-cases of AWS SQS and create a blog, Article elaborating how it works. Hello…

  • ARTH Team Task 1

    ARTH Team Task 1

    Task Description?? Create a menu using Python integrating all the concepts that have been taught by Vimal sir till now.…

  • Industry use cases of Neural Networks

    Industry use cases of Neural Networks

    What are Neural Networks? A neural network is a series of algorithms that endeavors to recognize underlying…

  • Industries are solving challenges using Ansible

    Industries are solving challenges using Ansible

    Task Description Create a Article, blog or Video on how industries are solving challenges using Ansible What is Ansible…

    2 条评论
  • How Kubernetes is used in Industries

    How Kubernetes is used in Industries

    What is Kubernetes ? Kubernetes is an open-source container orchestration platform that enables the operation of an…

  • AWS: Netflix Case Study

    AWS: Netflix Case Study

    We all have a dream to do some type of startup but when it comes to funding, almost all of the new startups have a…

  • Artificial Intelligence in automotive Industry

    Artificial Intelligence in automotive Industry

    What is Artificial Intelligence ? Artificial intelligence (AI) is the simulation of human intelligence processes by…

  • How to contribute limited amount of storage as slave to the cluster

    How to contribute limited amount of storage as slave to the cluster

    Task Description:- In a Hadoop cluster, find how to contribute limited/ specific amount of storage as slave to the…

  • Hadoop Cluster Availability

    Hadoop Cluster Availability

    What is Hadoop ? Hadoop is an open-source software framework for storing data and running applications on clusters of…

    4 条评论

社区洞察

其他会员也浏览了