forked from hungtran84/ubuntu-desktop-for-devops
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·25 lines (21 loc) · 755 Bytes
/
Copy pathinstall.sh
File metadata and controls
executable file
·25 lines (21 loc) · 755 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash
###################
# Install ansible #
# 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
ansible-galaxy collection install community.general
#####################################
# Display real installation process #
echo ""
echo "Customize the playbook ansible-desktop.yml to suit your needs, then run ansible with :"
echo " ansible-playbook ansible-desktop.yml --ask-become-pass"
echo ""