Skip to content

Instantly share code, notes, and snippets.

@leorog
Created July 26, 2020 17:03
Show Gist options
  • Select an option

  • Save leorog/c3c07cc6eb375057ba172b68e46a7287 to your computer and use it in GitHub Desktop.

Select an option

Save leorog/c3c07cc6eb375057ba172b68e46a7287 to your computer and use it in GitHub Desktop.
packer - docker image
---
- name: example
hosts: all
tasks:
- name: some file
copy:
content: text
dest: "/tmp/text"
{
"provisioners": [
{
"type": "shell",
"inline": [
"apt update",
"apt install -y ansible"
]
},
{
"type": "ansible-local",
"playbook_file": "local.yml"
}
],
"builders": [
{
"type": "docker",
"image": "ubuntu",
"commit": true
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment