Update script

This commit is contained in:
Yosafat Marselino 2025-05-17 09:49:17 -04:00
parent c3f19b744a
commit 1ccc256f3d
2 changed files with 3 additions and 2 deletions

View File

@ -29,7 +29,7 @@
- { name: 'script1.sh' }
- name: Execute downloaded scripts
shell: "/tmp/downloaded_scripts/{{ item.item.name }} --ip 192.168.8.54"
shell: "/tmp/downloaded_scripts/{{ item.item.name }} --ip 192.168.8.54 --prune "
loop: "{{ downloaded_scripts.results }}"
register: script_output

View File

@ -93,7 +93,8 @@ check_and_install_curl() {
# Function to check for existing Kubernetes cluster and prompt for removal
check_existing_cluster() {
if command_exists kubectl && kubectl cluster-info &>/dev/null; then
read -p "Existing Kubernetes cluster found. Do you want to remove it? (y/N): " remove_cluster
echo "Found existing installation"
echo "Proceed to clean em UP"
if [[ $PRUNE != false ]]; then
echo "Kubernetes cluster removal skipped. Exiting script."
exit 0