Skip to content

Commit

Permalink
Add update_rhel.yml example
Browse files Browse the repository at this point in the history
  • Loading branch information
myllynen committed Feb 3, 2025
1 parent 53c802e commit 4a20008
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions update_rhel.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
- name: Update RHEL
hosts: all
become: true
gather_facts: false
collections:
- myllynen.rhel_ansible_roles
vars:
#
# system_update
#
# Reboot policy after applying updates
# never - never reboot even if updates would require reboot
# when_needed - reboot only when needed (using needs-restarting)
# when_updated - reboot if updates were installed
# always - always reboot even if no updates were installed
system_update_reboot_policy: when_needed

# Display list of updated packages on output
system_update_display_updates: true

#
# system_update_report_pre
#
# Display list of pending updates on output
system_update_report_pre_display_updates: true

roles:
- system_update_report_pre
#- system_update

0 comments on commit 4a20008

Please sign in to comment.