1
0
Fork 0

Rename gemset

This commit is contained in:
Alex Kotov 2020-02-11 16:25:38 +05:00
parent d0cdd58ecc
commit 3718b569a6
Signed by: kotovalexarian
GPG key ID: 553C0EBBEB5D5F08
3 changed files with 7 additions and 7 deletions

View file

@ -1 +1 @@
report_ip
crypto_libertarian-report_ip

View file

@ -3,7 +3,7 @@ After=network.target
Description=Report IP web app
[Service]
ExecStart=/usr/local/rvm/bin/rvm ruby-2.7.0@report_ip do puma --environment production
ExecStart=/usr/local/rvm/bin/rvm ruby-2.7.0@crypto_libertarian-report_ip do puma --environment production
Group=report_ip
Restart=always
RestartSec=1

View file

@ -26,19 +26,19 @@
create_home: false
- name: Check RVM gemset
shell: /bin/bash --login -c 'rvm use ruby-2.7.0@report_ip'
shell: /bin/bash --login -c 'rvm use ruby-2.7.0@crypto_libertarian-report_ip'
ignore_errors: true
register: check_rvm_gemset_result
changed_when: false
- name: Create RVM gemset
shell: /bin/bash --login -c 'rvm use ruby-2.7.0@report_ip --create'
shell: /bin/bash --login -c 'rvm use ruby-2.7.0@crypto_libertarian-report_ip --create'
when: check_rvm_gemset_result.rc != 0
- name: Check Bundler
shell: >
/bin/bash --login -c
"rvm ruby-2.7.0@report_ip do
"rvm ruby-2.7.0@crypto_libertarian-report_ip do
gem info bundler --installed --version '~> 2.0'"
ignore_errors: true
register: check_bundler_result
@ -47,7 +47,7 @@
- name: Install Bundler
shell: >
/bin/bash --login -c
"rvm ruby-2.7.0@report_ip do
"rvm ruby-2.7.0@crypto_libertarian-report_ip do
gem install bundler -v '~> 2.0'"
when: check_bundler_result.rc != 0
@ -61,7 +61,7 @@
- name: Install gems
shell: >
/bin/bash --login -c
"rvm ruby-2.7.0@report_ip do
"rvm ruby-2.7.0@crypto_libertarian-report_ip do
bundle install --gemfile /opt/report_ip/Gemfile"
changed_when: false