ansible-playbook-lab-excercise-part-3

Create a playbook where you should install a webserver into 2 OS type(Ubuntu and RHEL) with fact conditioning. and list out a directory which in “/etc” and display such as “This is a directory /file in /etc:-XXXx”To be used Conditiong, looping, regiter and fact variable. There are 2 environment DEV and QA. Both has their own group_vars. Using it, in Dev and QA environment(RHEL/CENTOS) install apache and Dev should run with 80 port and QA should run with 8080 port.

Read more

ansible-variable-lab-excercise-part-2

Assigment 1 – Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared in role var file Assigment 2 – Create a playbook and setup a webserver(httpd) and use httpd as a variable decalared using prompt Assigment 3 – Create a playbook and setup a webserver(httpd) and find a list of .txt file in some directory and output using register variables Assigment 4 – Create a playbook and setup a webserver(httpd), copy a index.html and interpolate

Read more

What is Ansible and How it works? Explained with Images

What is Ansible? Ansible is a tool which manages configuration of servers. Management includes hardware and software management of server. Why Ansible? Easy to learn compare to java, python, ruby etc Its platform Independent Ansible has feature – IDEOMPOTENT Its open source tool Architecture of Ansible Ansible communicate with remote servers (ARS) through Ansible Control Server (ACS)

Read more