Skip to content

Commit

Permalink
Update passenger bunlder
Browse files Browse the repository at this point in the history
Co-authored-by: Jane Sandberg <[email protected]>
Co-authored-by: Max Kadel <[email protected]>
  • Loading branch information
3 people committed May 28, 2024
1 parent 9b1afb4 commit 2b8ba88
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
2 changes: 2 additions & 0 deletions group_vars/orangelight/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,8 @@ ol_rabbit_server: "amqp://{{ ol_rabbit_user }}:{{ ol_rabbit_password }}@{{ ol_ra
ol_rails_solr_url: "{{ ol_solr_url }}"
passenger_app_root: "/opt/orangelight/current/public"
passenger_extra_config: '{{ lookup("file", "roles/orangelight/templates/nginx_extra_config") }}'
passenger_extra_http_config:
- "passenger_preload_bundler on;"
passenger_ruby: "/usr/local/bin/ruby"
install_ruby_from_source: true
ruby_version_override: "ruby-3.1.0"
Expand Down
20 changes: 20 additions & 0 deletions roles/orangelight/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,22 @@
---
# tasks file for roles/orangelight

- name: orangelight | update rubygems
ansible.builtin.command: gem update --system 3.5.10
become: true
register: update_rubygems
changed_when: '"Latest version already installed. Done." not in update_rubygems.stdout'
tags: rubygems

- name: orangelight | install default bundler
ansible.builtin.command: gem install --default bundler:2.5.10
become: true
register: install_default_bundler
changed_when: '"Fetching bundler-2.5.10.gem" in install_default_bundler.stdout'
tags: rubygems

- name: bibdata | remove old default bundler
ansible.builtin.file:
path: /usr/local/lib/ruby/gems/3.1.0/specifications/default/bundler-2.5.9.gemspec
state: absent
tags: rubygems

0 comments on commit 2b8ba88

Please sign in to comment.