From: Jessica Wagantall Date: Wed, 29 Mar 2023 19:22:57 +0000 (-0700) Subject: Fix: Update memcached packer template X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=6b89f0707b6b4470ceffc22b3d69fa29374e864f;p=ci-management.git Fix: Update memcached packer template Update memcached packer template provisioner to pick up the ansible tools installed under the venv. Issue-ID: CIMAN-33 Signed-off-by: Jessica Wagantall Change-Id: Ia8234567c6dbf25021c2b51beea43717238655b5 --- diff --git a/packer/templates/memcached.json b/packer/templates/memcached.json index 6554fb613..c25a564e1 100644 --- a/packer/templates/memcached.json +++ b/packer/templates/memcached.json @@ -41,9 +41,7 @@ "provisioners": [ { "type": "shell", - "scripts": [ - "common-packer/provision/install-python.sh" - ], + "scripts": ["common-packer/provision/install-python.sh"], "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi" }, { @@ -52,6 +50,8 @@ }, { "type": "ansible", + "command": "./common-packer/ansible-playbook.sh", + "skip_version_check": true, "playbook_file": "provision/memcached.yaml", "ansible_env_vars": [ "ANSIBLE_NOCOWS=1",