Configuring K8s Cluster using Ansible role in AWS

Ansible

Setup Dynamic Inventory

EC2.PY FILE AFTER CHANGING INTERPRETER

Set the configuration file

ANSIBLE CONFIGURATION FILE

Create roles

ansible-galaxy init <name_of_role>

ROLE IS SUCCESSFULLY CREATED
SIMILARLY, CREATE OTHER TWO ROLES
INSIDE THE ROLE
INSIDE THE TASK /MAIN .YML FILE
INSIDE THE VARS MAIN FILE
PART 1
PART 2
PART 3
PART 1
PART 2

Create the Main setup file :

ANSIBLE CONFIGURATION
MAINSETUP.YML FILE

Output:

SUCCESSFULLY RUN

Thankyou for the read !!

--

--

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