{
  "variables": {
    "name": null,
    "aws_region": "eu-west-1"
  },
  "builders": [{
    "type": "amazon-ebs",
    "region": "{{ user `aws_region` }}",
    "source_ami": "ami-971238f1",
    "instance_type": "t2.micro",
    "ssh_username": "ubuntu",
    "ami_name": "{{ user `name` }}-{{isotime | clean_ami_name}}",
    "ami_users": [
      "050019655025",
      "381494870249",
      "398263320410"
    ],
    "tags": {
      "server-role": "{{ user `name` }}",
      "source-ami": "ami-971238f1"
    }
  }],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sleep 20",
        "sudo apt-get update",
        "sudo apt-get install -y ansible"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "../playbooks/{{ user `name` }}_playbook.yml",
      "role_paths": [
        "../playbooks/roles/{{ user `name` }}/",
        "../playbooks/roles/cloudwatch/",
        "../playbooks/roles/common/"
      ],
      "extra_arguments": [
        "-t image-setup",
        "-e aws_region={{ user `aws_region` }}"
      ],
      "staging_directory": "/home/ubuntu/provisioning/"
    }
  ]
}

{
  "variables": {
    "name": null,
    "aws_region": "eu-west-1"
  },
  "builders": [{
    "type": "amazon-ebs",
    "region": "{{ user `aws_region` }}",
    "source_ami": "ami-6d48500b",
    "instance_type": "t2.micro",
    "ssh_username": "ubuntu",
    "ami_name": "{{ user `name` }}-{{isotime | clean_ami_name}}",
    "ami_users": [
      "050019655025",
      "381494870249",
      "398263320410"
    ],
    "tags": {
      "server-role": "{{ user `name` }}",
      "source-ami": "ami-6d48500b"
    }
  }],
  "provisioners": [
    {
      "type": "shell",
      "inline": [
        "sleep 20",
        "sudo apt-get update",
        "sudo apt-get install -y ansible"
      ]
    },
    {
      "type": "ansible-local",
      "playbook_file": "../playbooks/{{ user `name` }}_playbook.yml",
      "role_paths": [
        "../playbooks/roles/{{ user `name` }}/",
        "../playbooks/roles/cloudwatch/",
        "../playbooks/roles/common/"
      ],
      "extra_arguments": [
        "-t image-setup",
        "-e aws_region={{ user `aws_region` }}"
      ],
      "staging_directory": "/home/ubuntu/provisioning/"
    }
  ]
}

Update AMI to ami-6d48500b to pull in latest ubuntu
Update AMI to ami-6d48500b to pull in latest ubuntu
