7acca40563
See https://github.com/bundler/bundler/issues/6870 Bundler 2.x dropped support for Ruby < 2.3 so now we detect ruby version and install last known to work version. This means that newer OS will get newer versions of bundler. Change-Id: I906ad01187ad5b929b378107de065d32d23c5fc2 Closes-Bug: #1810401
19 lines
626 B
YAML
19 lines
626 B
YAML
- hosts: all
|
|
tasks:
|
|
- shell:
|
|
cmd: |
|
|
export PUPPET_GEM_VERSION='~> {{ puppet }}'
|
|
mkdir .bundled_gems
|
|
export GEM_HOME=`pwd`/.bundled_gems
|
|
ruby <<EOF
|
|
cmd = 'gem install bundler --no-rdoc --no-ri --verbose'
|
|
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new('2.3.0') then
|
|
cmd += ' -v 1.17.3'
|
|
end
|
|
system(cmd)
|
|
EOF
|
|
$GEM_HOME/bin/bundle install --retry 3
|
|
$GEM_HOME/bin/bundle exec rake syntax
|
|
chdir: '{{ ansible_user_dir }}/workspace'
|
|
environment: '{{ zuul | zuul_legacy_vars }}'
|