From 4a0ea8fbe22378979c0dfe8caaf9cb0e3e1b077a Mon Sep 17 00:00:00 2001 From: esteban Date: Wed, 13 Mar 2019 14:10:31 -0600 Subject: [PATCH 1/2] Add bundler version --- tasks/main.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tasks/main.yml b/tasks/main.yml index f9db2e9..d687d92 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -21,6 +21,10 @@ dest: "{{ jekyll_build_sourcedir }}/{{ jekyll_build_git_repo | basename }}" force: "{{ jekyll_build_force_git }}" +- name: install bundler + become: yes + shell: gem install bundler -v 1.16.1 + - name: update bundle become: yes command: bundle install From 90e17d0d13e877ecf2ce41711c0e89cf942b7c2c Mon Sep 17 00:00:00 2001 From: esteban Date: Thu, 14 Mar 2019 00:20:11 -0600 Subject: [PATCH 2/2] Refactorize install bundler task --- defaults/main.yml | 2 ++ tasks/main.yml | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/defaults/main.yml b/defaults/main.yml index 1f600c2..d6b119a 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -16,3 +16,5 @@ jekyll_build_config: [] ruby_install_gems: ['jekyll'] jekyll_build_force_git: False jekyll_build_force_rebuild: False + +bundler_version: 1.16.1 diff --git a/tasks/main.yml b/tasks/main.yml index d687d92..57819b2 100644 --- a/tasks/main.yml +++ b/tasks/main.yml @@ -22,8 +22,9 @@ force: "{{ jekyll_build_force_git }}" - name: install bundler - become: yes - shell: gem install bundler -v 1.16.1 + gem: + name: bundler + version: "{{bundler_version}}" - name: update bundle become: yes