Use ansible ruby role to install gems
[ci-management.git] / packer / provision / local-docker.yaml
index d47fd16..fd24d8d 100644 (file)
@@ -1,3 +1,5 @@
+# This Ansible playbook adds packages to the
+# O-RAN-SC build minion image that has Docker.
 ---
 - import_playbook: ../common-packer/provision/docker.yaml
 
     - include_role: name=lfit.system-update
 
   tasks:
-    - name: 'Install rake gem'
-      command: 'gem install rake'
-      become: true
+    - include_role:
+        name: fubarhouse.ruby
+      vars:
+        ruby_version: 2.4.0
+        ruby_packages:
+          - rake
+          - package_cloud
 
-    - name: 'Install PackageCloud'
-      command: 'gem install package_cloud'
-      become: true
+    - include_role:
+        name: fubarhouse.golang
+      vars:
+        go_version: 1.12