From 3a2e561e893e935d25b2892c67df1dd1758a7fb6 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 | 4 ++-- ansible-scylla-node/tasks/RedHat.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ansible-scylla-node/tasks/Debian_install.yml b/ansible-scylla-node/tasks/Debian_install.yml index e1545803..42fbf1e2 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 - become: true \ No newline at end of file + when: not scylla_is_installed or upgrade_scylla + become: true 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: |