From: Anil Belur Date: Tue, 3 Jul 2018 02:35:13 +0000 (+1000) Subject: Update robot template to download Ansible roles X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=commitdiff_plain;h=2881f762cf22cbc792917ae77b3a3d539faa6b27;p=releng%2Fbuilder.git Update robot template to download Ansible roles Update robot template to download roles from Ansible galaxy. Change-Id: I351403a0d519d19aeeb3a4e0e77f52a515ffd771 Signed-off-by: Anil Belur --- diff --git a/packer/templates/robot.json b/packer/templates/robot.json index cff9a0e1c..d0f61e78d 100644 --- a/packer/templates/robot.json +++ b/packer/templates/robot.json @@ -46,6 +46,10 @@ ], "execute_command": "chmod +x {{ .Path }}; if [ \"$UID\" == \"0\" ]; then {{ .Vars }} '{{ .Path }}'; else {{ .Vars }} sudo -E '{{ .Path }}'; fi" }, + { + "type": "shell-local", + "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}" + }, { "type": "ansible", "playbook_file": "provision/robot.yaml",