Add script to install ansible
This commit is contained in:
parent
cc1aa66c25
commit
fe3ca1afef
10
prerequisites.sh
Executable file
10
prerequisites.sh
Executable 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
|
Loading…
Reference in a new issue