From 830b93426a79c4c028c2bdd26a20cb57ef06175c Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Wed, 28 Oct 2015 08:28:51 -0400 Subject: [PATCH] ignore when adding 'origin' fails as it may already exist Signed-off-by: Alfredo Deza --- ansible/roles/ceph-release/tasks/main.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/ansible/roles/ceph-release/tasks/main.yml b/ansible/roles/ceph-release/tasks/main.yml index a8aebaf9..53c81458 100644 --- a/ansible/roles/ceph-release/tasks/main.yml +++ b/ansible/roles/ceph-release/tasks/main.yml @@ -14,6 +14,8 @@ - name: add origin command: git remote add origin git@github.com:ceph/ceph-releases.git chdir=ceph + # because if the repo exists then it probably has the origin already in there + ignore_errors: yes - name: clear the previous local tag command: git tag -d v{{ version }} chdir=ceph -- 2.39.5