NGINX INSTALL WITH ANSIBLE

Under this topic, installation of Nginx Web Server application will be explained.To do this you should follow below steps.
Step1:
You can downloand Nginx Instalaltion packages from this repository. After, you should copy files on the ansible machine.
Also you can use git command to clone files. To do this you should use below command.

git clone https://github.com/hafifbilgiler/ANSIBLE.git

Also you can download files use below commands.

wget https://github.com/hafifbilgiler/ANSIBLE/archive/master.zip

Step2:
You can install the nginx by following the step belows.

git clone https://github.com/hafifbilgiler/ANSIBLE.git
Clon The Repo Fİle

Step3:
Then after you should go to the downloaded folder.

cd ANSIBLE/Nginx/

Step4:

You should add ip address in the inventory file. Also you can add a lot of ip address for nginx installation.

vim inventory.txt
Add IP Address In Inventory File

Step5:
You can start the installation steps with command below.

 ansible-playbook install.yml -i inventort.txt
Installation Nginx With Ansible

Step6:
Check Nginx Web Server in target machine.

systemctl status nginx
Check Nginx Installation

REDIS INSTALL WITH ANSIBLE

Redis Server will be explained under this topic. To do this you should follow steps below.
Step1:
You should to obtain Redis Installation files from this repository. You can download zip file and put the ansible machine or you can use git clone command for obtain Redis Installation files in ansible machine.

git clone https://github.com/hafifbilgiler/ANSIBLE.git

Also you can downloand zip file and use unzip command.

wget https://github.com/hafifbilgiler/ANSIBLE/archive/master.zip
unzip master.zip

Step2:
We will use first command(git clone).

cd ANSIBLE/Redis/Redis5/

Then after you should edit variable/vars.yml file and inventory file to customization and add ip address.

vim variable/vars.yml
Vars.yml File
Add Ip Addres In Inventory Files

After customization, you can go next step.

Step3:
Then after you can run below command to complate installation Redis Installation.

ansible-playbook install.yml -i inventory.txt
Complate Redis Installation

After İnstallation you can go remote machine and check redis server. You can see how do this it as below.

systemctl status redis
Check Redis Server Status
redis-cli -h your_ip_address -p your_port
set key value
get key
Check Redis Server

As you can see our installation has been succeeded.

RABBITMQ INSTALL WITH ANSIBLE

Under this topic installation of kubernetes cluster will be explained use ansible otomation platform.
To do this you should follow below steps.

Step1:
You should obtain the installation files, click links below.
https://github.com/hafifbilgiler/ANSIBLE
To obtain files, you can use git clone command or use the wget command. If you choose the wget command you should use unzip command to extract files after downloand in your ansible machine.. We will use git clone command.

git clone https://github.com/hafifbilgiler/ANSIBLE.git
Clone The Ansible Repository From Hafif Bilgiler

Steps2:
Go to under dowloanded files and go to RABBITMQ Folder.

cd ANSIBLE/RABBITMQ

Steps3:
You should configure the inventory.txt and variable/vars.yml file for your inventory and costumization settings.

vim inventory.txt
Edit Inventory Files
vim variables/vars.yml
Change Vars File

Steps4:
Then you can start the installation with command below, and you must answer the question to ssl certificate creation.

ansible-playbook install.yml -i inventory.txt
Answer The Question For SSL Certificate
Completed The Installation

Step5:
Check your rabbitmq cluster in your browser with your ip address and RabbitMQ management UI SSL Port number(15671).

Connect RabbitMQ Management UI

For Connect management UI you must put username and password in specific box.
Username: guest
Password: guest

After login you can configure the username and password.

Login RabbitMQ Management UI
Check Cluster

Kubernetes Cluster Install With Ansible

Under this topic installation of kubernetes cluster will be explained use ansible otomation platform.
To do this you should follow below steps.

Step1:
You can downloand Kubernetes Installation packages from this repository. Then you should put dowlanded files in ansible machine.
Also you can use git command for download Ansible project files. To do this you should use below command.

git clone https://github.com/hafifbilgiler/ANSIBLE.git

Also you can downloand zip file with wget command and you can continue installation with extract unzip files.

wget https://github.com/hafifbilgiler/ANSIBLE/archive/master.zip
unzip master.zip

Step2:
Then you should go Kubernetes installation folder.

cd ANSIBLE/Kubernetes

Step3:
You sould edit inventory.txt files and vars.yml file to customize installation.

vim inventory.txt
Edit Inventory File
vim variable/vars.yml
Edit vars.yml File

Step4:
Then you can start Kubernetes Installation with below command.

 ansible-playbook install.yml -i inventory.txt
Installation Kubernetes Cluster

After Installation you can check the cluster in master machine with use below command.

kubectl get nodes
Check Kubernetes Cluster

Tags:

No responses yet

Bir yanıt yazın

E-posta adresiniz yayınlanmayacak. Gerekli alanlar * ile işaretlenmişlerdir

Latest Comments