Pin ansible-galaxy version of lf-recommended-tools

* currently building new AMI images is not possible due to a version
  conflict between the nodejs package installed by the newest version of
  lf-recommended-tools from the upstream nodejs debian repository and
  the nodejs-dev version installed by the onf-playbook from the default
  debian repositories of ubuntu 18.04
* to solve this conflict for now, we should pull both nodejs and
  nodejs-dev from the default debian repository for ubuntu 18.04 as done
  before
* to avoid installing the new nodejs repository and nodejs itself by
  running the newer version of lf-recommended-tools from ansible-galaxy,
  we need to generate our own requirements.yaml
  (packer/ansible-galaxy-requirements.yaml) to pin the version of
  lf-recommended-tools to the last commit before the installation of
  nodejs was added
* in addition to adding our own requirements file, we also need to
  replace the scripted call of ansible-galaxy.sh from the upstream
  repository with a simple `ansible-galaxy install ... -r` while handing
  over our own ansible-galaxy-requirements.yaml as the requirements file
  (instead of using the one from upstream)

Signed-off-by: Jan Klare <jan.klare@bisdn.de>
Change-Id: I2f7d07afb229a065eedafeb891ef040e6cfe4f10
diff --git a/packer/ansible-galaxy-requirements.yaml b/packer/ansible-galaxy-requirements.yaml
new file mode 100644
index 0000000..75ca641
--- /dev/null
+++ b/packer/ansible-galaxy-requirements.yaml
@@ -0,0 +1,15 @@
+---
+- src: lfit.docker-install
+- src: lfit.haveged-install
+- src: lfit.java-install
+- src: lfit.lf-dev-libs
+- src: lfit.lf-recommended-tools
+  version: cefa9ddf2cdd6f7f114b8906c6f0b89e6bb5bc76
+- src: lfit.mono-install
+- src: lfit.packer-install
+- src: lfit.protobuf-install
+- src: lfit.puppet-install
+- src: lfit.python-install
+- src: lfit.shellcheck-install
+- src: lfit.sysstat-install
+- src: lfit.system-update
diff --git a/packer/templates/basebuild_1804.json b/packer/templates/basebuild_1804.json
index 0bd5455..69d4740 100644
--- a/packer/templates/basebuild_1804.json
+++ b/packer/templates/basebuild_1804.json
@@ -52,7 +52,7 @@
     "provisioners": [
       {
           "type": "shell-local",
-          "command": "./common-packer/ansible-galaxy.sh {{user `ansible_roles_path`}}"
+          "command": "ansible-galaxy install -p {{user `ansible_roles_path`}} -r ./ansible-galaxy-requirements.yaml"
       },
       {
           "type": "ansible",