From a92409c56f18c16cc11716ac0cef4ecc792ac031 Mon Sep 17 00:00:00 2001 From: Ruakij Date: Fri, 14 Apr 2023 10:01:42 +0200 Subject: [PATCH] Add failed_when to deploy calico operator --- .../tasks/install/server/network-plugin/deploy_calico.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kubernetes/tasks/install/server/network-plugin/deploy_calico.yml b/kubernetes/tasks/install/server/network-plugin/deploy_calico.yml index 7cd2955..8c8a802 100644 --- a/kubernetes/tasks/install/server/network-plugin/deploy_calico.yml +++ b/kubernetes/tasks/install/server/network-plugin/deploy_calico.yml @@ -3,6 +3,8 @@ register: command changed_when: "'created' in command.stdout" run_once: true + failed_when: + - "command.rc == 1 and 'AlreadyExists' not in command.stderr" - name: Deploy calico ressource template ansible.builtin.template: