Trying to work around Packer Enterprise issues

This commit is contained in:
Moritz Heiber 2017-05-23 21:57:07 +02:00
parent 4855aad63e
commit fe1db06d40
2 changed files with 9 additions and 0 deletions

8
ansible-playbook-workaround Executable file
View File

@ -0,0 +1,8 @@
#!/bin/bash
if [ "${1}" == "--version" ] ; then
echo "ansible-playbook 2.2.2.0"
exit 0
fi
exec ansible-playbook "$@"

View File

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