Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Ansible
- hosts: local
connection: local
gather_facts: False
tasks:
- name: creating_instance_config
ec2:
key_name: kabegiwa-key
vpc_subnet_id: subnet-xxxxxxxx
instance_type: t2.micro
assign_public_ip: no
image: ami-xxxxxxxx
group: kabe_security_group
region: ap-northeast-1
termination_protection: no
ebs_optimized: false
volumes:
- device_name: /dev/xvda
volume_type: gp2
volume_size: 8
delete_on_termination: true
count_tag:
Hostname: Hostname
instance_tags:
Name: kabe_test
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.