diff --git a/examples/build.pkr.hcl b/examples/build.pkr.hcl deleted file mode 100644 index 6e0f9e3..0000000 --- a/examples/build.pkr.hcl +++ /dev/null @@ -1,37 +0,0 @@ -packer { - required_plugins { - amazon = { - version = ">= 1.2.8" - source = "github.com/hashicorp/amazon" - } - ansible = { - version = "v1.1.1" - source ="github.com/hashicorp/ansible" - } - } -} - -variable subnet_id {} -variable security_group_id {} - -source "amazon-ebs" "ubuntu" { - ami_name = "learn-packer-linux-aws" - instance_type = "t2.micro" - source_ami = "ami-07e218d88f8f9c4db" - ssh_username = "ec2-user" - subnet_id = var.subnet_id - security_group_ids = [ - var.security_group_id - ] -} - -build { - name = "learn-packer" - sources = [ - "source.amazon-ebs.ubuntu" - ] - provisioner "ansible" { - playbook_file = "./playbook.yml" - roles_path = "./ansible/roles" - } -} diff --git a/examples/playbook.yaml b/examples/playbook.yaml deleted file mode 100644 index f7ccf5b..0000000 --- a/examples/playbook.yaml +++ /dev/null @@ -1,7 +0,0 @@ ---- -# playbook.yml -- name: 'Provision Image' - hosts: default - become: true - roles: - - hello_world