From 14a98c87b2f0812deb97571e8e969d74288572ea Mon Sep 17 00:00:00 2001 From: staticsafe Date: Fri, 24 Nov 2017 15:38:59 -0500 Subject: [PATCH] Use || instead of && in roles/ruby/tasks/main.yml --- roles/ruby/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/ruby/tasks/main.yml b/roles/ruby/tasks/main.yml index b4fe68e..1cbcab1 100644 --- a/roles/ruby/tasks/main.yml +++ b/roles/ruby/tasks/main.yml @@ -27,7 +27,7 @@ become: true become_user: mastodon - name: Install Ruby and set it as the user's default - shell: /home/mastodon/.rbenv/bin/rbenv install 2.4.2 && /home/mastodon/.rbenv/bin/rbenv global 2.4.2 + shell: /home/mastodon/.rbenv/bin/rbenv install 2.4.2 || /home/mastodon/.rbenv/bin/rbenv global 2.4.2 args: executable: /bin/bash become: true