Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Ubuntu Patching
- - hosts: [ALL_UBUNTU_TEST]
- gather_facts: no
- any_errors_fatal: true
- become: true
- tasks:
- - name: Update Cache
- apt:
- update_cache: yes
- name: aptitude
- state: present
- - name: Update all packages
- apt:
- upgrade: true
- autoclean: true
- autoremove: true
- - name: Reboot
- reboot:
- # Red Hat - Centos Patching
- - hosts: [ALL_RHEL_TEST]
- gather_facts: no
- any_errors_fatal: true
- become: true
- tasks:
- - name: Patch RHEL
- yum:
- name: "*"
- state: latest
- - name: Reboot Servers
- reboot:
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement