rearranged tasks
This commit is contained in:
@@ -8,10 +8,10 @@
|
|||||||
- include_tasks: system_setup/prepare_packagemanager.yml
|
- include_tasks: system_setup/prepare_packagemanager.yml
|
||||||
|
|
||||||
- block:
|
- block:
|
||||||
|
- include_tasks: system_setup/packages.yml
|
||||||
- include_role: name=database
|
- include_role: name=database
|
||||||
- include_tasks: system_setup/prepare_database.yml
|
- include_tasks: system_setup/prepare_database.yml
|
||||||
- include_role: name=webserver
|
- include_role: name=webserver
|
||||||
- include_tasks: system_setup/packages.yml
|
|
||||||
- include_tasks: system_setup/nginx.yml
|
- include_tasks: system_setup/nginx.yml
|
||||||
- include_tasks: system_setup/user.yml
|
- include_tasks: system_setup/user.yml
|
||||||
- include_tasks: system_setup/ruby.yml
|
- include_tasks: system_setup/ruby.yml
|
||||||
|
|||||||
@@ -5,15 +5,7 @@
|
|||||||
repo: "https://github.com/rbenv/rbenv.git"
|
repo: "https://github.com/rbenv/rbenv.git"
|
||||||
dest: "{{ mastodon_home }}/.rbenv"
|
dest: "{{ mastodon_home }}/.rbenv"
|
||||||
clone: true
|
clone: true
|
||||||
version: "{{ rbenv_version }}"
|
# version: "{{ rbenv_version }}"
|
||||||
|
|
||||||
- name: mastodon | Clone ruby-build
|
|
||||||
git:
|
|
||||||
repo: "https://github.com/rbenv/ruby-build.git"
|
|
||||||
dest: "{{ mastodon_home }}/.rbenv/plugins/ruby-build"
|
|
||||||
clone: true
|
|
||||||
version: "{{ ruby_build_version }}"
|
|
||||||
register: ruby_build
|
|
||||||
|
|
||||||
- name: mastodon | Configure rbenv
|
- name: mastodon | Configure rbenv
|
||||||
command: ./configure
|
command: ./configure
|
||||||
@@ -34,6 +26,14 @@
|
|||||||
export PATH="{{ mastodon_home }}/.rbenv/bin:${PATH}"
|
export PATH="{{ mastodon_home }}/.rbenv/bin:${PATH}"
|
||||||
eval "$(rbenv init -)"
|
eval "$(rbenv init -)"
|
||||||
|
|
||||||
|
- name: mastodon | Clone ruby-build
|
||||||
|
git:
|
||||||
|
repo: "https://github.com/rbenv/ruby-build.git"
|
||||||
|
dest: "{{ mastodon_home }}/.rbenv/plugins/ruby-build"
|
||||||
|
clone: true
|
||||||
|
version: "{{ ruby_build_version }}"
|
||||||
|
register: ruby_build
|
||||||
|
|
||||||
- name: mastodon | Check if the Ruby version is already installed
|
- name: mastodon | Check if the Ruby version is already installed
|
||||||
shell: "{{ mastodon_home }}/.rbenv/bin/rbenv versions | grep -q {{ ruby_version }}"
|
shell: "{{ mastodon_home }}/.rbenv/bin/rbenv versions | grep -q {{ ruby_version }}"
|
||||||
register: ruby_installed
|
register: ruby_installed
|
||||||
@@ -41,7 +41,7 @@
|
|||||||
check_mode: no
|
check_mode: no
|
||||||
|
|
||||||
- name: mastodon | Install Ruby {{ ruby_version }}
|
- name: mastodon | Install Ruby {{ ruby_version }}
|
||||||
shell: "{{ mastodon_home }}/.rbenv/bin/rbenv install {{ ruby_version }}"
|
shell: "RUBY_CONFIGURE_OPTS=--with-jemalloc {{ mastodon_home }}/.rbenv/bin/rbenv install {{ ruby_version }}"
|
||||||
args:
|
args:
|
||||||
executable: /bin/bash
|
executable: /bin/bash
|
||||||
when: ruby_installed is failed
|
when: ruby_installed is failed
|
||||||
|
|||||||
Reference in New Issue
Block a user