Update script
This commit is contained in:
parent
c3f19b744a
commit
1ccc256f3d
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user