1 # This Ansible playbook adds packages to the
2 # O-RAN-SC build minion image that has Docker.
4 - import_playbook: ../common-packer/provision/docker.yaml
12 gopath: '/opt/go/{{golang_version}}/bin'
15 - include_role: name=lfit.system-update
19 name: geerlingguy.ruby
23 ruby_install_bundler: false
24 ruby_install_from_source: true
26 ruby_download_url: http://cache.ruby-lang.org/pub/ruby/2.5/ruby-2.5.1.tar.gz
29 - name: 'Install PackageCloud'
30 command: 'gem install package_cloud'
38 - name: Add Go to Ubuntu path
40 path: /etc/environment
41 regexp: 'PATH=(["]*)((?!.*?{{gopath}}).*?)(["]*)$'
42 line: 'PATH=\1\2:{{gopath}}\3'
44 when: ansible_distribution == 'Ubuntu'