summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJonathan Bauer2017-03-17 17:43:22 +0100
committerJonathan Bauer2017-03-17 17:43:22 +0100
commit125af3ec2ed7aaac5ddaa6372f3a058ce44dc5c0 (patch)
treea5cdc909d1d6d989be318b5e38f9f10e3b0a23e9
parentbetter path to playbook file (diff)
downloadansible-dracut-125af3ec2ed7aaac5ddaa6372f3a058ce44dc5c0.tar.gz
ansible-dracut-125af3ec2ed7aaac5ddaa6372f3a058ce44dc5c0.tar.xz
ansible-dracut-125af3ec2ed7aaac5ddaa6372f3a058ce44dc5c0.zip
fixed typo
-rw-r--r--README.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md
index a4a42ff..6fe78dc 100644
--- a/README.md
+++ b/README.md
@@ -23,6 +23,8 @@ Use the provided 'build-dracut-initramfs.yml' playbook for the ansible provision
You can use an already created qcow2 image, instead of always generating new packer images. See *run-playbook-only.json*
for a sample packer template to use an existing qcow2 image and provision them with our playbook.
The template requires the variable 'image_path' to be set, which needs to be the path of the qcow2 image.
+
If it was generated by packer and the manifest was created, you can simply extract the image path from that:
- packer build -var-file=base.json -only=qemu -var='image_path='"$(jq -r '.builds[0].files[0].name' < manifest.json)"'' test.json
+ # Be in same directory as where you built the image with packer
+ packer build -var-file=base.json -only=qemu -var='image_path='"$(jq -r '.builds[0].files[0].name' < manifest.json)"'' ansible-roles/run-playbook-only.json