Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.61 KB | None | 0 0
  1. # Ubuntu Patching
  2. - hosts: [ALL_UBUNTU_TEST]
  3. gather_facts: no
  4. any_errors_fatal: true
  5. become: true
  6. tasks:
  7.  
  8. - name: Update Cache
  9. apt:
  10. update_cache: yes
  11. name: aptitude
  12. state: present
  13.  
  14. - name: Update all packages
  15. apt:
  16. upgrade: true
  17. autoclean: true
  18. autoremove: true
  19.  
  20. - name: Reboot
  21. reboot:
  22.  
  23. # Red Hat - Centos Patching
  24. - hosts: [ALL_RHEL_TEST]
  25. gather_facts: no
  26. any_errors_fatal: true
  27. become: true
  28. tasks:
  29.  
  30. - name: Patch RHEL
  31. yum:
  32. name: "*"
  33. state: latest
  34.  
  35. - name: Reboot Servers
  36. reboot:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement