From 68b503c8591a3805b34f3d845f741167cbd685ed Mon Sep 17 00:00:00 2001 From: Eduardo Benzecri Date: Wed, 27 Sep 2023 17:09:13 -0300 Subject: [PATCH] ansible-scylla-node: Allows Scylla to be installed when an upgrade is required This patch will also allow Scylla to be installed if upgrade_version is set to true. Signed-off-by: Eduardo Benzecri --- ansible-scylla-node/tasks/Debian_install.yml | 2 +- ansible-scylla-node/tasks/RedHat.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ansible-scylla-node/tasks/Debian_install.yml b/ansible-scylla-node/tasks/Debian_install.yml index e1545803..ed6fd905 100644 --- a/ansible-scylla-node/tasks/Debian_install.yml +++ b/ansible-scylla-node/tasks/Debian_install.yml @@ -53,5 +53,5 @@ name: "{{ scylla_package_prefix }}={{ aptversions.stdout }}" state: present allow_downgrade: yes - when: not scylla_is_installed + when: not scylla_is_installed or upgrade_scylla become: true \ No newline at end of file diff --git a/ansible-scylla-node/tasks/RedHat.yml b/ansible-scylla-node/tasks/RedHat.yml index 3ca779ca..0995860d 100644 --- a/ansible-scylla-node/tasks/RedHat.yml +++ b/ansible-scylla-node/tasks/RedHat.yml @@ -107,7 +107,7 @@ state: present lock_timeout: 60 become: true - when: not scylla_is_installed + when: not scylla_is_installed or upgrade_scylla - name: Configure SELinux shell: |