Use ansible ruby role to install gems
[ci-management.git] / packer / provision / local-docker.yaml
index 329edd5..fd24d8d 100644 (file)
@@ -1,11 +1,25 @@
+# This Ansible playbook adds packages to the
+# O-RAN-SC build minion image that has Docker.
 ---
 - import_playbook: ../common-packer/provision/docker.yaml
 
+- hosts: all
+  become_user: root
+  become_method: sudo
+
+  pre_tasks:
+    - 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