From: Eric Ball Date: Fri, 10 Jan 2020 01:26:23 +0000 (-0800) Subject: Use ansible ruby role to install gems X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=commitdiff_plain;h=e7fc37fde1bc4647b2a95d96b65d842423b47a0c;p=ci-management.git Use ansible ruby role to install gems We're running into issues installing gems using "gem install" commands, due to missing/outdated ruby version. Instead, we should use a third-party ruby role, which will install a specific version of ruby, and as a bonus, can handle installing the specific gems we want as well. Issue-ID: LF-Jira IT-18593 Signed-off-by: Eric Ball Change-Id: I3fe5987f17342d0d366eeed731d4f42687e1fc73 --- diff --git a/packer/provision/local-docker.yaml b/packer/provision/local-docker.yaml index e75a0fa7..fd24d8dd 100644 --- a/packer/provision/local-docker.yaml +++ b/packer/provision/local-docker.yaml @@ -11,13 +11,13 @@ - include_role: name=lfit.system-update tasks: - - name: 'Install rake gem' - command: 'gem install rake' - become: true - - - name: 'Install PackageCloud' - command: 'gem install package_cloud' - become: true + - include_role: + name: fubarhouse.ruby + vars: + ruby_version: 2.4.0 + ruby_packages: + - rake + - package_cloud - include_role: name: fubarhouse.golang