Skip to content

Instantly share code, notes, and snippets.

@suresh-mahawar
Created August 25, 2023 12:03
Show Gist options
  • Select an option

  • Save suresh-mahawar/706b0ca160168dc1349908d612aa4683 to your computer and use it in GitHub Desktop.

Select an option

Save suresh-mahawar/706b0ca160168dc1349908d612aa4683 to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Installed ansible versions";
for i in $(ls $HOME/avm_dir/versions);
do
echo $i;
done
echo Choose ansible version:
read line < /dev/tty
ANSIBLE_VERSION=$line;
export ANSIBLE_PATH=$HOME/avm_dir/versions/$ANSIBLE_VERSION/bin
echo $ANSIBLE_PATH
$ANSIBLE_PATH/ansible --version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment