style: make ansible-lint happier
This commit is contained in:
@@ -1,38 +1,39 @@
|
||||
---
|
||||
|
||||
- name: git rbenv
|
||||
- name: Git rbenv
|
||||
remote_user: mastodon
|
||||
git:
|
||||
ansible.builtin.git:
|
||||
repo: "https://github.com/rbenv/rbenv.git"
|
||||
dest: "{{ mastodon_home }}/.rbenv"
|
||||
single_branch: true
|
||||
version: master
|
||||
|
||||
- name: git ruby-build
|
||||
- name: Git ruby-build
|
||||
remote_user: mastodon
|
||||
git:
|
||||
ansible.builtin.git:
|
||||
repo: https://github.com/rbenv/ruby-build.git
|
||||
dest: "{{ mastodon_home }}/.rbenv/plugins/ruby-build"
|
||||
single_branch: true
|
||||
version: master
|
||||
|
||||
- name: append env to mastodon bashrc
|
||||
- name: Append env to mastodon bashrc
|
||||
remote_user: mastodon
|
||||
lineinfile:
|
||||
ansible.builtin.lineinfile:
|
||||
path: "{{ mastodon_home }}/.bashrc"
|
||||
line: "eval \"$({{ mastodon_home }}/.rbenv/bin/rbenv init - bash)\""
|
||||
|
||||
- name: install ruby version
|
||||
- name: Install ruby version
|
||||
remote_user: mastodon
|
||||
shell: "bash -lic 'rbenv install {{ mastodon_ruby_version }}'"
|
||||
ansible.builtin.shell: "bash -lic 'rbenv install {{ mastodon_ruby_version }}'"
|
||||
args:
|
||||
executable: /bin/bash
|
||||
creates: "~/.rbenv/versions/{{ mastodon_ruby_version }}/bin/ruby"
|
||||
environment:
|
||||
RUBY_CONFIGURE_OPTS: "--with-jemalloc"
|
||||
|
||||
- name: install bundler for ruby
|
||||
- name: Install bundler for ruby
|
||||
remote_user: mastodon
|
||||
shell: "bash -lic 'rbenv global {{ mastodon_ruby_version }} && ruby --version && gem install bundler --no-document'"
|
||||
ansible.builtin.shell: "bash -lic 'rbenv global {{ mastodon_ruby_version }} && ruby --version && gem install bundler --no-document'"
|
||||
changed_when: true
|
||||
args:
|
||||
executable: /bin/bash
|
||||
|
Reference in New Issue
Block a user