Skip to content

Instantly share code, notes, and snippets.

@minskmaz
Last active October 20, 2015 20:07
Show Gist options
  • Save minskmaz/8eb90c68613d1c728444 to your computer and use it in GitHub Desktop.
Save minskmaz/8eb90c68613d1c728444 to your computer and use it in GitHub Desktop.
{
"builders":[{
"type": "docker",
"image": "ubuntu:14.04",
"export_path": "image.tar"
}],
"provisioners":[
{
"type": "shell",
"inline": [
"apt-get -y update",
"apt-get install -y python-pip python-dev",
"apt-get install python-simplejson",
"pip install ansible"
]
},
{
"type": "ansible-local",
"playbook_file": "playbooks/local.yml",
"playbook_dir": "playbooks"
}
],
"post-processors": [
{
"type": "docker-import",
"repository": "minskmaz/packer-ansible",
"tag": "0.1"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment