-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·29 lines (23 loc) · 793 Bytes
/
install.sh
File metadata and controls
executable file
·29 lines (23 loc) · 793 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
26
27
28
29
#!/usr/bin/env sh
# check the ssh agent in order to clone git repos later on
#if [ -z "$SSH_AUTH_SOCK" ] ; then
# eval `ssh-agent -s`
ssh-add
#fi
# install linux brew
if ! [ -x "$(command -v brew)" ]; then
yes | /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
fi
sudo apt-get install -y git
sudo apt-get install -y software-properties-common
sudo apt-add-repository -y ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible
# install missing dependencies
ansible-galaxy collection install ansible.builtin
ansible-galaxy collection install community.general
ansible-galaxy collection install ansible.posix
ansible-pull -U https://github.com/lbesnard/Fleet-Control.git \
-K \
-i ansible/hosts \
ansible/local.yml