NOTE:
INSTALL ANSIBLE IN LOCAL MACHINE
now to n.virginia region
go to ami
launch image
go to ec2 dashboard
launch instance
all traffic anywhere
use public ip of that with 8080 and see website'
{
"builders": [
{
"type": "amazon-ebs",
"access_key": "AKQ",
"secret_key": "K1aurid",
"region": "us-east-1",
"instance_type": "t2.micro",
"source_ami": "ami-02e136e904f3da870",
"ssh_username": "ec2-user",
"ami_name": "moonu-amiii"
}
],
"provisioners": [
{
"type": "shell",
"inline":[
"sleep 30",
"sudo yum update -y",
"sudo amazon-linux-extras install ansible2"
]
},
{
"type": "ansible-local",
"playbook_file": "./playbook.yaml"
}
]
}
Comments
Post a Comment