From fe1db06d40de6403b901e8a47944fcabf2629024 Mon Sep 17 00:00:00 2001 From: Moritz Heiber Date: Tue, 23 May 2017 21:57:07 +0200 Subject: [PATCH] Trying to work around Packer Enterprise issues --- ansible-playbook-workaround | 8 ++++++++ packer.atlas.json | 1 + 2 files changed, 9 insertions(+) create mode 100755 ansible-playbook-workaround diff --git a/ansible-playbook-workaround b/ansible-playbook-workaround new file mode 100755 index 0000000..3f9c480 --- /dev/null +++ b/ansible-playbook-workaround @@ -0,0 +1,8 @@ +#!/bin/bash + +if [ "${1}" == "--version" ] ; then + echo "ansible-playbook 2.2.2.0" + exit 0 +fi + +exec ansible-playbook "$@" diff --git a/packer.atlas.json b/packer.atlas.json index d30fd16..b88fe62 100644 --- a/packer.atlas.json +++ b/packer.atlas.json @@ -34,6 +34,7 @@ { "type": "ansible", "playbook_file": "ansible/playbook.yml", + "command": "./ansible-playbook-workaround", "extra_arguments": [ "--extra-vars", "mastodon_db_password=CHANGEME" ], "ansible_env_vars": [ "ANSIBLE_REMOTE_TEMP=\"~/.ansible-tmp\"",