Update robot template to download Ansible roles 76/73676/1
authorAnil Belur <abelur@linuxfoundation.org>
Tue, 3 Jul 2018 02:35:13 +0000 (12:35 +1000)
committerAnil Belur <abelur@linuxfoundation.org>
Tue, 3 Jul 2018 02:35:13 +0000 (12:35 +1000)
Update robot template to download roles from Ansible galaxy.

Change-Id: I351403a0d519d19aeeb3a4e0e77f52a515ffd771
Signed-off-by: Anil Belur <abelur@linuxfoundation.org>
packer/templates/robot.json

index cff9a0e1c3041e359262bdda74bd287ed601977d..d0f61e78de72d1c24daa5fbfa6d91eeaf4ef02b2 100644 (file)
       ],
       "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",