From 6cda78d1ee84855d058ded3908a3c7ea360d9ffc Mon Sep 17 00:00:00 2001 From: Christoph Haas Date: Sun, 3 May 2020 22:33:18 +0200 Subject: [PATCH] Playbook improvement --- ansible/debshots.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ansible/debshots.yml b/ansible/debshots.yml index 3034beb..8ecf7ad 100644 --- a/ansible/debshots.yml +++ b/ansible/debshots.yml @@ -56,12 +56,14 @@ git: repo: https://github.com/rbenv/rbenv.git dest: /opt/debshots/.rbenv + force: yes - name: Get rbenv-install become: yes become_user: debshots git: repo: https://github.com/rbenv/ruby-build.git dest: /opt/debshots/.rbenv/plugins/ruby-build + force: yes - name: enable rbenv copy: src: files/debshots-bash-profile @@ -73,8 +75,8 @@ # Path defaults to ansible/files src: ../.. dest: /opt/debshots - delete: yes - rsync_opts: --exclude=.git/,--exclude=log/,--exclude=tmp/cache + #delete: yes + rsync_opts: --exclude=.git/,--exclude=log/,--exclude=tmp/cache,--exclude=storage/ - name: Build Ruby version shell: rbenv install -v {{ruby_version}} creates=/opt/debshots/.rbenv/versions/{{ruby_version}} @@ -111,7 +113,7 @@ become_flags: "-i" - name: Pre-render the static assets - shell: rails assets:precompile RAILS_ENV=production + shell: bundle exec rails assets:precompile RAILS_ENV=production args: chdir: /opt/debshots become: yes