From 4b5631e60b2110e8a08030ddc22afd3d105cb8a1 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 11 Mar 2019 18:12:55 +0100 Subject: [PATCH] Retry 3 times npm and yarn --- roles/codimd/tasks/main.yml | 3 +++ roles/matrix-appservice-irc/tasks/main.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/roles/codimd/tasks/main.yml b/roles/codimd/tasks/main.yml index 7ea0069..f3b349f 100644 --- a/roles/codimd/tasks/main.yml +++ b/roles/codimd/tasks/main.yml @@ -22,6 +22,9 @@ production: true become: true become_user: codimd + register: yarn_result + retries: 3 + until: yarn_result is succeeded # Connection to database - name: Connect CodiMD to PostgreSQL db diff --git a/roles/matrix-appservice-irc/tasks/main.yml b/roles/matrix-appservice-irc/tasks/main.yml index 298efa4..4025fc7 100644 --- a/roles/matrix-appservice-irc/tasks/main.yml +++ b/roles/matrix-appservice-irc/tasks/main.yml @@ -20,6 +20,9 @@ production: true become: true become_user: matrix-appservice-irc + register: npm_result + retries: 3 + until: npm_result is succeeded # Configure - name: Configure matrix-appservice-irc