-
Notifications
You must be signed in to change notification settings - Fork 0
/
bootstrap.sh
21 lines (15 loc) · 892 Bytes
/
bootstrap.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!/bin/bash
# minimal base line apps for running ansible
apt -qq update && apt -y install curl git gpg nala python3 wget
# install ansible repository
#UBUNTU_CODENAME=jammy #use the ubuntu code name
#wget -O- "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" | gpg --dearmour -o /usr/share/keyrings/ansible-archive-keyring.gpg
#echo "deb [signed-by=/usr/share/keyrings/ansible-archive-keyring.gpg] http://ppa.launchpad.net/ansible/ansible/ubuntu $UBUNTU_CODENAME main" | tee /etc/apt/sources.list.d/ansible.list
# Run nala updateer
nala fetch --fetches 16 --assume-yes --auto
# install ansible
nala install ansible --assume-yes
# install starship - its not in the offical repos
curl -sS https://starship.rs/install.sh | sh
# run ansible
ansible-pull -U https://github.com/zyzyx159/bootstrap.git -i "$(hostname --short),"