Add script to install ansible

This commit is contained in:
Oliver Traber 2023-12-03 18:57:51 +01:00
parent cc1aa66c25
commit fe3ca1afef
Signed by: Bluemedia
GPG key ID: C0674B105057136C

10
prerequisites.sh Executable file
View file

@ -0,0 +1,10 @@
#!/bin/bash
UBUNTU_CODENAME=jammy
sudo apt update
sudo apt install wget gpg
wget -O- "https://keyserver.ubuntu.com/pks/lookup?fingerprint=on&op=get&search=0x6125E2A8C77F2818FB7BD15B93C4A3FD7BB9C367" | sudo 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" | sudo tee /etc/apt/sources.list.d/ansible.list
sudo apt update
sudo apt install ansible