You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
459 B
19 lines
459 B
#!/bin/bash
|
|
|
|
if ! grep -q "ansible/ansible" /etc/apt/sources.list /etc/apt/sources.list.d/*; then
|
|
echo "Adding Ansible PPA"
|
|
sudo apt-add-repository ppa:ansible/ansible -y
|
|
fi
|
|
|
|
if ! hash ansible >/dev/null 2>&1; then
|
|
echo "Installing Ansible..."
|
|
sudo apt-get update
|
|
sudo apt-get install software-properties-common ansible git python-apt -y
|
|
else
|
|
echo "Ansible already installed"
|
|
fi
|
|
|
|
echo ""
|
|
echo "Run ansible with:"
|
|
echo " make"
|
|
echo ""
|