Created
August 25, 2023 12:03
-
-
Save suresh-mahawar/706b0ca160168dc1349908d612aa4683 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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