Re-add ruby and package_cloud install to packer
[ci-management.git] / packer / provision / local-docker.yaml
1 # This Ansible playbook adds packages to the
2 # O-RAN-SC build minion image that has Docker.
3 ---
4 - import_playbook: ../common-packer/provision/docker.yaml
5
6 - hosts: all
7   become_user: root
8   become_method: sudo
9
10   pre_tasks:
11     - include_role: name=lfit.system-update
12
13   tasks:
14     - include_role:
15         name: geerlingguy.ruby
16       vars:
17         ruby_install_gems:
18           - rake
19         ruby_install_bundler: false
20         ruby_install_from_source: true
21         ansible_become: true
22
23     - name: 'Install PackageCloud'
24       command: 'gem install package_cloud'
25       become: true
26
27     - include_role:
28         name: gantsign.golang
29       vars:
30         golang_version: 1.12
31         ansible_become: true