diff --git a/ansible-scylla-node/defaults/main.yml b/ansible-scylla-node/defaults/main.yml index 1b35e118..9748aa6c 100644 --- a/ansible-scylla-node/defaults/main.yml +++ b/ansible-scylla-node/defaults/main.yml @@ -5,6 +5,12 @@ # UPGRADE # ============================== +# Skips role upgrade check. Useful if the role failed in the middle of an installation. +# Values: +# [default] false: Fail when Scylla is installed and the upgrade_version == False +# true: When upgrade_version == False, re-run the install process +skip_upgrade_check: false + # Upgrades Scylla version if a previous installation is detected # Values: # [default] false: don't check for upgrades diff --git a/ansible-scylla-node/tasks/main.yml b/ansible-scylla-node/tasks/main.yml index 7b388a0b..b0db9b97 100644 --- a/ansible-scylla-node/tasks/main.yml +++ b/ansible-scylla-node/tasks/main.yml @@ -13,8 +13,9 @@ msg: > Detected an existing Scylla installation. Should you want to upgrade, set `upgrade_version' to True. + If you are recovering from a failed role run, set `skip_upgrade_check' to True. when: > - not upgrade_version and + not upgrade_version and not skip_upgrade_check and ( 'scylla-server' in ansible_facts.packages or 'scylla-enterprise-server' in ansible_facts.packages )