Created
July 26, 2020 17:03
-
-
Save leorog/c3c07cc6eb375057ba172b68e46a7287 to your computer and use it in GitHub Desktop.
packer - docker image
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| - name: example | |
| hosts: all | |
| tasks: | |
| - name: some file | |
| copy: | |
| content: text | |
| dest: "/tmp/text" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "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