Skip to content

Instantly share code, notes, and snippets.

@rodesousa
Created October 25, 2016 12:58
Show Gist options
  • Select an option

  • Save rodesousa/8b7db5432375639fd64eaf4beff0e272 to your computer and use it in GitHub Desktop.

Select an option

Save rodesousa/8b7db5432375639fd64eaf4beff0e272 to your computer and use it in GitHub Desktop.
{
    "builders":[{
        "type": "docker",
        "image": "ubuntu",
        "export_path": "image.tar"
    }],
    "provisioners":[
        {
            "type": "shell",
            "inline": [
                "apt-get -y update",
                "apt-get install -y python-pip python-dev",
                "pip install ansible"
            ]
        },
        {
            "type": "ansible-local",
            "playbook_file": "playbooks/local.yml"
        }
    ],
    "post-processors": [
        {
            "type": "docker-import",
            "repository": "tcnksm/packer-ansible",
            "tag": "0.1"
        }
    ]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment