Skip to content

Instantly share code, notes, and snippets.

@takakabe
Last active February 7, 2018 22:11
Show Gist options
  • Save takakabe/59d3a8672caa399cead0fb8e67934b87 to your computer and use it in GitHub Desktop.
Save takakabe/59d3a8672caa399cead0fb8e67934b87 to your computer and use it in GitHub Desktop.
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