Advertisement
jessemoore

InstallAnsible

Dec 19th, 2022 (edited)
1,403
0
Never
1
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.34 KB | Cybersecurity | 0 0
  1. # https://4sysops.com/archives/automate-windows-updates-with-ansible/
  2. #
  3. Echo "**** INSTALL ANSIBLE ****"
  4. sudo apt-get update
  5. sudo apt-get install software-properties-common -y
  6. sudo apt install python3-pip
  7. sudo apt-add-repository --yes --update ppa:ansible/ansible
  8. sudo apt-get update
  9. sudo apt-get install ansible-core -y
  10.  
  11. sudo pip install "pywinrm>=0.3.0"
  12. sudo apt install tree
  13.  
  14. pip3 install "ansible-lint[yamllint]"
  15. pip install --upgrade virtualenv
  16. pip3 install ansible
  17. sudo apt install sshpass
  18.  
  19. export PATH=$PATH:/home/ubunuser/.local/bin
  20. Echo "**** INSTALL DONE ****"
  21. Echo "**** CHANGE MOTD ****"
  22. echo " █████  ███    ██ ███████ ██ ██████  ██      ███████ 
  23. ██   ██ ████   ██ ██      ██ ██   ██ ██      ██      
  24. ███████ ██ ██  ██ ███████ ██ ██████  ██      █████   
  25. ██   ██ ██  ██ ██      ██ ██ ██   ██ ██      ██      
  26. ██   ██ ██   ████ ███████ ██ ██████  ███████ ███████ " >> /etc/motd
Tags: ansible
Advertisement
Comments
Add Comment
Please, Sign In to add comment
Advertisement