scottslowe-learning-tools/ansible/bootstrap/compute.tf
Scott Lowe 2fca12122a
Add files to show how to bootstrap Ubuntu 16.04 for Ansible
Add Terraform configurations to launch an Ubuntu 16.04 AWS instance. Add Ansible playbook to bootstrap the instance for use with Ansible.

Signed-off-by: Scott Lowe <scott.lowe@scottlowe.org>
2017-09-18 21:40:05 -06:00

14 lines
552 B
HCL

# Launch an instance to serve as target for Ansible playbook
resource "aws_instance" "xenial" {
ami = "${data.aws_ami.xenial_ami.id}"
instance_type = "${var.instance_type}"
key_name = "${var.key_pair}"
vpc_security_group_ids = ["${var.sec_grp}"]
subnet_id = "${var.dest_subnet}"
tags {
Name = "xenial"
demo = "ansible-bootstrap"
owner = "Scott Lowe"
tool = "terraform"
}
}