ruby-Version wird upstream gesetzt
This commit is contained in:
parent
0c04610aa2
commit
48e995e215
3 changed files with 7 additions and 12 deletions
|
@ -4,7 +4,6 @@ debian_version: buster
|
||||||
ruby_path: "{{ zammad_user_home }}/.rbenv"
|
ruby_path: "{{ zammad_user_home }}/.rbenv"
|
||||||
ruby_bin_path: "{{ ruby_path }}/versions/{{ ruby_version }}/bin"
|
ruby_bin_path: "{{ ruby_path }}/versions/{{ ruby_version }}/bin"
|
||||||
ruby_build_repo: https://github.com/rbenv/ruby-build.git
|
ruby_build_repo: https://github.com/rbenv/ruby-build.git
|
||||||
ruby_version: 2.6.6
|
|
||||||
|
|
||||||
zammad_database_name: zammad
|
zammad_database_name: zammad
|
||||||
zammad_database_password: "{{ lookup('password', '/tmp/zammad_database_pwd length=42 chars=ascii_letters,digits') }}"
|
zammad_database_password: "{{ lookup('password', '/tmp/zammad_database_pwd length=42 chars=ascii_letters,digits') }}"
|
||||||
|
@ -18,5 +17,5 @@ zammad_log_path: /var/log/zammad
|
||||||
zammad_repo: https://github.com/zammad/zammad.git
|
zammad_repo: https://github.com/zammad/zammad.git
|
||||||
zammad_user: zammad
|
zammad_user: zammad
|
||||||
zammad_user_home: "/home/{{ zammad_user }}"
|
zammad_user_home: "/home/{{ zammad_user }}"
|
||||||
zammad_version: 4.1.0
|
zammad_version: 5.0.0
|
||||||
zammad_webserver_configuration: "/etc/nginx/sites-available/{{ zammad_domain }}"
|
zammad_webserver_configuration: "/etc/nginx/sites-available/{{ zammad_domain }}"
|
||||||
|
|
|
@ -17,24 +17,17 @@
|
||||||
|
|
||||||
- name: "ruby: Version prüfen"
|
- name: "ruby: Version prüfen"
|
||||||
stat:
|
stat:
|
||||||
path: "{{ ruby_path }}/versions/{{ ruby_version }}"
|
path: "{{ ruby_path }}/versions/{{ ruby_version.stdout }}"
|
||||||
register: ruby_installed
|
register: ruby_installed
|
||||||
|
|
||||||
- name: "ruby installieren"
|
- name: "ruby installieren"
|
||||||
command:
|
command:
|
||||||
cmd: "rbenv install {{ ruby_version }}"
|
cmd: "rbenv install {{ ruby_version.stdout }}"
|
||||||
chdir: "{{ zammad_user_home }}"
|
chdir: "{{ zammad_user_home }}"
|
||||||
become: true
|
become: true
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
when: ruby_installed.stat.exists == False
|
when: ruby_installed.stat.exists == False
|
||||||
|
|
||||||
- name: "ruby aktivieren"
|
|
||||||
shell: "rbenv local {{ ruby_version }}"
|
|
||||||
args:
|
|
||||||
chdir: "{{ zammad_home }}"
|
|
||||||
become: true
|
|
||||||
become_user: "{{ zammad_user }}"
|
|
||||||
|
|
||||||
- name: "ruby: Bundler installieren"
|
- name: "ruby: Bundler installieren"
|
||||||
command:
|
command:
|
||||||
cmd: rbenv exec gem install bundler
|
cmd: rbenv exec gem install bundler
|
||||||
|
@ -43,7 +36,7 @@
|
||||||
become_user: "{{ zammad_user }}"
|
become_user: "{{ zammad_user }}"
|
||||||
|
|
||||||
- name: "ruby: Ruby-Abhängigkeiten installieren"
|
- name: "ruby: Ruby-Abhängigkeiten installieren"
|
||||||
shell: "RAILS_ENV=production {{ ruby_bin_path }}/bundle install --without test development mysql"
|
shell: "RAILS_ENV=production rbenv exec bundle install --without test development mysql"
|
||||||
args:
|
args:
|
||||||
chdir: "{{ zammad_home }}"
|
chdir: "{{ zammad_home }}"
|
||||||
become: true
|
become: true
|
||||||
|
|
|
@ -25,3 +25,6 @@
|
||||||
src: ldap-user-filter.patch
|
src: ldap-user-filter.patch
|
||||||
dest: "{{ zammad_home }}/lib/ldap/user.rb"
|
dest: "{{ zammad_home }}/lib/ldap/user.rb"
|
||||||
|
|
||||||
|
- name: "zammad: Ermittle Ruby-Version"
|
||||||
|
shell: cat "{{ zammad_home }}/.ruby-version"
|
||||||
|
register: ruby_version
|
||||||
|
|
Loading…
Reference in a new issue