Тёмный
No video :(

AWS EC2 Deployment using Ansible Playbook. 

Linux R
Подписаться 2,4 тыс.
Просмотров 11 тыс.
50% 1

Hello Guys,
I am Ram Mishra,
Welcome to my “Linux R” RU-vid 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

Опубликовано:

 

29 авг 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 8   
@lowtierviper
@lowtierviper 19 дней назад
Appreciate this video 🫡
@LinuxR798
@LinuxR798 18 дней назад
Thank you very much.
@mubasshirabdulrauf1769
@mubasshirabdulrauf1769 10 месяцев назад
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 7 месяцев назад
the headline should be - provision using ansible .
@burmesey8102
@burmesey8102 6 месяцев назад
[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😇