diff options
author | Anil Belur <abelur@linuxfoundation.org> | 2023-03-22 21:49:11 +0530 |
---|---|---|
committer | Anil Belur <abelur@linuxfoundation.org> | 2023-03-22 22:29:02 +0530 |
commit | 7881deff57f3517a10a51325d4e72a7f0bc6b0e3 (patch) | |
tree | 32b3cfd7b20fac91c9dac98e84444c2165bbfc45 /packer | |
parent | b8115c8294dcdc34c133dfe922cfd04434aa7c35 (diff) |
Fix: Update redis template
Update redis template provisioner to pick up the
ansible tools installed under the venv.
Issue-ID: CIMAN-33
Change-Id: I9bee4b2274565e887bf2e5cbfaf6792d087c3e44
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
Diffstat (limited to 'packer')
-rw-r--r-- | packer/templates/redis.json | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/packer/templates/redis.json b/packer/templates/redis.json index 6bf7b17f3..657f10923 100644 --- a/packer/templates/redis.json +++ b/packer/templates/redis.json @@ -39,9 +39,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" }, { @@ -50,6 +48,8 @@ }, { "type": "ansible", + "command": "./common-packer/ansible-playbook.sh", + "skip_version_check": true, "playbook_file": "provision/redis.yaml", "ansible_env_vars": [ "ANSIBLE_NOCOWS=1", |