No video

AWS EC2 Deployment using Ansible Playbook.

  Рет қаралды 10,485

Linux R

Linux R

2 жыл бұрын

Hello Guys,
I am Ram Mishra,
Welcome to my “Linux R” KZfaq Channel.
About This Video: -
In this video i am going to explained you “How to create AWS EC2 instance using Ansible Playbook”.
Ansible is a configuration management tool, and unlike Chef and Puppet, it uses a push mechanism to make the desired changes on the servers using ssh-agent. For AWS, we can use boto SDK instead.
Please Like, Share on my Video and Provide your valuable feedback by commenting in below comment section.
***************************************************************************
About This Channel:-
Friends, on this channel you get to see RHEL Linux, RHCSA AND RHCE, Ansible (Automation) , AWS-Cloud or Devops related videos. With this, more educational videos will be found on this channel. Friends, if you like this channel, then please subscribe to the channel and do not forget press the bell icon button, for latest update.
Friends, if u r interested in taking rhel online classes for RHCSA and RHCE, Anisble (Automation) and AWS-Cloud, contact us threw given links.
Interested candidates are requested to register in the below mentioned link.
Registration Link: forms.gle/wfoc...
My social Site Links:
Mailing address: linuxr798@gmail.com
Facebook Address: / retesh.mishra.33
LinkedIn Address: / ram-mishra-508a3385
Channel Link: / @linuxr798
#################################
📢THANKS FOR WATCHING
📢PLEASE LIKE SHARE AND SUBSCRIBE
📢JOIN FOR ONLINE TRAINING
=============================
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
Ansible Code for Daemo Lab.
#### cat main.yml
Lauch Basic EC@2 instance in mumbai region.
- name: Ansible Play
hosts: localhost
tasks:
- name: launching AWS instance using Ansible
ec2:
key_name: mumbai
region: ap-south-1
instance_type: t2.micro
image: ami-05c8ca4485f8b138a
instance_tags:
Name: Daemo_server
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
##### cat stop.yml
- name: Stop instances
hosts: localhost
tasks:
- name: Stop instances that were previously launched
ec2:
state: stopped
region: ap-south-1
instance_tags:
Name: Daemo_server
##### cat start.yml
- name: Start instances
hosts: localhost
tasks:
- name: Start instances that were previously Stoped
ec2:
state: running
region: ap-south-1
instance_tags:
Name: Daemo_server
$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$
#### cat terminate.yml
- name: Terminate instances
hosts: localhost
tasks:
- name: Terminate instances that were previously created
ec2:
state: absent
region: ap-south-1
instance_ids: i-0f1bd9874124383b2

Пікірлер: 8
@lowtierviper
@lowtierviper 4 күн бұрын
Appreciate this video 🫡
@LinuxR798
@LinuxR798 3 күн бұрын
Thank you very much.
@mubasshirabdulrauf1769
@mubasshirabdulrauf1769 9 ай бұрын
sir i am facing this issue, how to solve this: fatal: [localhost]: FAILED! => {"changed": false, "msg": "Instance creation failed => UnknownParameter: The parameter MetadataOptions is not recognized"}
@software4live
@software4live 7 ай бұрын
Create a new keypair for the new region. Below is my yml - name: Ansible Play hosts: localhost tasks: - name: Launching AWS instance using Ansible community.aws.ec2_instance: key_name: "newAnsibleKey" # Update it with the new key pair you created region: "ca-central-1" # Update it with the region you chose instance_type: "t2.micro" image_id: "ami-04978032a1284973a" # update it with your desired AMI tags: Name: "Daemo_server"
@MOHITYadav-js8fb
@MOHITYadav-js8fb 6 ай бұрын
the headline should be - provision using ansible .
@burmesey8102
@burmesey8102 5 ай бұрын
[root@ip-172-31-46-84 ec2-user]# ansible-doc ec2 [WARNING]: ec2 was not found
@abhilashhasankar5768
@abhilashhasankar5768 3 ай бұрын
hey, he has used wrong module name, try ec2_instance instead of jst ec2..... Things will work happy learning😇
Manage Windows Host.
14:02
Linux R
Рет қаралды 439
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН
Look at two different videos 😁 @karina-kola
00:11
Andrey Grechka
Рет қаралды 8 МЛН
Terraform Ansible Integration | Terraform Ansible AWS Example
8:36
Easy to install Ansible 2.15.3 and Quick Run in AWS EC2?
11:40
What is Ansible?
11:06
IBM Technology
Рет қаралды 172 М.
Using Ansible to automate your Laptop and Desktop configs!
1:08:27
Learn Linux TV
Рет қаралды 100 М.
This web UI for Ansible is so damn useful!
20:07
Christian Lempa
Рет қаралды 470 М.
Managing AWS Instances Using Ansible
12:40
theurbanpenguin
Рет қаралды 4,4 М.
you need to learn Ansible RIGHT NOW!! (Linux Automation)
21:21
NetworkChuck
Рет қаралды 862 М.
Идеально повторил? Хотите вторую часть?
00:13
⚡️КАН АНДРЕЙ⚡️
Рет қаралды 16 МЛН