From d6cf42e065010a762d2a0d1ca012fdf39db49e2b Mon Sep 17 00:00:00 2001 From: Sadiq Saif Date: Sat, 12 Jan 2019 14:14:40 -0500 Subject: [PATCH] Add task to remove any Gemfile.lock files --- roles/mastodon-app/tasks/main.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/roles/mastodon-app/tasks/main.yml b/roles/mastodon-app/tasks/main.yml index 76d01f7..7a7f9aa 100644 --- a/roles/mastodon-app/tasks/main.yml +++ b/roles/mastodon-app/tasks/main.yml @@ -18,6 +18,12 @@ PATH: '/home/mastodon/.rbenv/bin:/home/mastodon/.rbenv/shims:/home/mastodon/.rbenv/plugins/ruby-build/bin:{{ ansible_env.PATH }}' become: true become_user: mastodon +- name: Remove any Gemfile.lock files + file: + name: /home/mastodon/live/Gemfile.lock + state: absent + become: true + become_user: mastodon - name: Use bundler to install the rest of the Ruby dependencies shell: cd /home/mastodon/live && bundle install --deployment --without development test args: