-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstartup.sh
26 lines (19 loc) · 822 Bytes
/
startup.sh
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
26
#!/bin/bash
# Update the package list
sudo apt-get update
# Install dependencies
sudo apt-get install -y software-properties-common
# Install Ansible
sudo apt-add-repository --yes --update ppa:ansible/ansible
sudo apt-get install -y ansible
# Install Docker
sudo apt-get install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/debian $(lsb_release -cs) stable"
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
# Enable Docker service
sudo systemctl start docker
sudo systemctl enable docker
# Additional customizations or setups can be added here
echo "Ansible and Docker have been installed!"