Rename gemset
This commit is contained in:
parent
d0cdd58ecc
commit
3718b569a6
3 changed files with 7 additions and 7 deletions
|
@ -1 +1 @@
|
|||
report_ip
|
||||
crypto_libertarian-report_ip
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Reference in a new issue