From d98b4632c2b23364af51f69fb5ac32d0f2260bba Mon Sep 17 00:00:00 2001 From: Ukang'a Dickson Date: Wed, 9 Sep 2020 18:30:23 +0300 Subject: [PATCH] Ignore errors when killing PM2 processes (#8) When there is no PM2 process to kill the script fails --- tasks/configure.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/tasks/configure.yml b/tasks/configure.yml index 91e73bf..d0b35bd 100644 --- a/tasks/configure.yml +++ b/tasks/configure.yml @@ -112,5 +112,6 @@ - name: Cleanup pm2 processes # HACK: this should not be happening shell: ps aux | grep PM2 | grep -v grep | awk '{print $2}' | xargs kill -9 # noqa 306 + ignore_errors: true tags: - molecule-idempotence-notest # noqa 301