Skip to content

Commit

Permalink
ansible update to version 6* (#207)
Browse files Browse the repository at this point in the history
Signed-off-by: ISP akm <[email protected]>
  • Loading branch information
xygyo77 authored Nov 20, 2024
1 parent 601d28c commit 8930aef
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions setup_caret.sh
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,11 @@ fi

# Run ansible if confirmed
# Install ansible
# TODO: To update Ansible 6.*
ansible_version=$(pip3 list | grep -oP "^ansible\s+\K([0-9]+)" || true)
if [ "$ansible_version" != "5" ]; then
if [ "$ansible_version" != "6" ]; then
sudo apt-get -y update
sudo apt-get -y purge ansible
sudo pip3 install -U "ansible==5.*"
sudo pip3 install -U "ansible==6.*"
fi

# Set options
Expand Down

0 comments on commit 8930aef

Please sign in to comment.