Configure K8S Multi-Node Cluster over AWS using Ansible

How we can convert our ansible PlayBook to Role ? 🤔

We Will Also Going To Share that on Ansible Galaxy !! 🤔

Ansible Galaxy

Jump start your automation project with great content from the Ansible community

Shashwatsingh22/instance_ec2

A brief description of the role goes here. Any pre-requisites that may not be covered by Ansible itself or the role…

Shashwatsingh22/k8s_cluster

Ansible Collection — . Contribute to Shashwatsingh22/k8s_cluster development by creating an account on GitHub.

Ansible Galaxy

Jump start your automation project with great content from the Ansible community

$ kubectl get nodes

Shashwat Singh

More from Shashwat Singh

Create An Ansible Playbook to Retrieve the Container IP and update the Inventory File & Configure the Webserver.

Configure The LoadBalancer On EC2 Instance !!

- hosts: localhost
become: Falsevars_prompt:
- name: noOS
private: no
prompt: "How Many Instances Do You Wants Lunch ?"vars_files:
- awsAccess.ymltasks:
- name: Launch instance for webserver
ec2:
count: "{{ noOS }}"
group_id: "sg-0d4c5f0d452e1b620"
image: "ami-08e0ca9924195beba"
aws_access_key: "{{ usern }}"
aws_secret_key: "{{ pass }}"
instance_type: "t2.micro" …

--

--

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