Advertisement
PandaAcademy

CICD6 ansible_installation.sh

Apr 23rd, 2022 (edited)
183
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.29 KB | None | 0 0
  1. if which ansible;
  2. then
  3. echo "Ansible is already installed"
  4. else
  5. apt install -y gnupg
  6. echo "deb http://ppa.launchpad.net/ansible/ansible/ubuntu trusty main" >> /etc/apt/sources.list
  7. apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 93C4A3FD7BB9C367
  8. apt update
  9. apt install -y ansible
  10. fi
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement