From 361ddd5b79cf69a7a87aa5ed9f9bff6de9b6aad2 Mon Sep 17 00:00:00 2001 From: Matte <51192395+MatteZ02@users.noreply.github.com> Date: Thu, 18 Apr 2024 22:38:26 +0300 Subject: [PATCH] Update deployer.yml --- tasks/deployer.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tasks/deployer.yml b/tasks/deployer.yml index 531d1bb..37e122e 100644 --- a/tasks/deployer.yml +++ b/tasks/deployer.yml @@ -57,7 +57,9 @@ command: "mariadb-upgrade --host=127.0.0.1 --user=root --password=y9ZmTmUKLaRrZ4SA" register: task ignore_errors: yes - changed_when: task.stdout.find("This installation of MariaDB is already upgraded") == -1 + changed_when: + - task.stdout is defined + - task.stdout.find("This installation of MariaDB is already upgraded") == -1 when: - (deployerTask102 is defined and deployerTask102.changed) or deployerTask102 is undefined tags: