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\"",