From 0e9ad9b9c0b533dacb73cfc2a03f2c3e5c3cd297 Mon Sep 17 00:00:00 2001 From: saibotk Date: Thu, 22 Feb 2024 03:58:24 +0100 Subject: [PATCH] fix(mastodon): Version detection grep expression --- roles/mastodon/tasks/main.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roles/mastodon/tasks/main.yml b/roles/mastodon/tasks/main.yml index ff4ef99..03eaee6 100644 --- a/roles/mastodon/tasks/main.yml +++ b/roles/mastodon/tasks/main.yml @@ -96,7 +96,7 @@ become: true - name: Check if migration is needed - ansible.builtin.command: "grep -q 'tootsuite/mastodon:{{ mastodon_image_version }}' '{{ mastodon_install_location }}/docker-compose.yml'" + ansible.builtin.command: "grep -q 'mastodon/mastodon:{{ mastodon_image_version }}' '{{ mastodon_install_location }}/docker-compose.yml'" register: mastodon_version_fact ignore_errors: true changed_when: mastodon_version_fact.rc > 0