From 0e43a09c96d8ffb613e46722bf399bbb70021c3c Mon Sep 17 00:00:00 2001 From: rene Date: Fri, 18 Mar 2022 17:11:38 +0100 Subject: [PATCH] reordered block statements --- roles/mastodon/tasks/system_setup/mastodon.yml | 6 +++--- roles/mastodon/tasks/system_setup/ruby.yml | 8 ++++---- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/roles/mastodon/tasks/system_setup/mastodon.yml b/roles/mastodon/tasks/system_setup/mastodon.yml index aad3d2c..eb8835d 100644 --- a/roles/mastodon/tasks/system_setup/mastodon.yml +++ b/roles/mastodon/tasks/system_setup/mastodon.yml @@ -1,7 +1,4 @@ - block: - become: true - become_user: "{{ mastodon_user }}" - - name: Clone mastodon git: repo: "https://github.com/mastodon/mastodon.git" @@ -49,6 +46,9 @@ chdir: "{{ mastodon_home }}/{{ mastodon_path }}" when: production_config.stat.exists + become: true + become_user: "{{ mastodon_user }}" + - name: Install systemd sidekiq Service Files template: src: mastodon-sidekiq.service.j2 diff --git a/roles/mastodon/tasks/system_setup/ruby.yml b/roles/mastodon/tasks/system_setup/ruby.yml index 3faa10f..0ad29e7 100644 --- a/roles/mastodon/tasks/system_setup/ruby.yml +++ b/roles/mastodon/tasks/system_setup/ruby.yml @@ -1,8 +1,5 @@ --- - block: - become: true - become_user: "{{ mastodon_user }}" - - name: mastodon | Clone rbenv git: repo: "https://github.com/rbenv/rbenv.git" @@ -59,4 +56,7 @@ shell: 'export PATH="$HOME/.rbenv/bin:$PATH"; eval "$(rbenv init -)"; gem install bundler:{{ bundler_version }}' args: executable: /bin/bash - when: default_ruby_version is succeeded \ No newline at end of file + when: default_ruby_version is succeeded + + become: true + become_user: "{{ mastodon_user }}" \ No newline at end of file