Initial commit. Add Inventory
This commit is contained in:
17
update.yml
Normal file
17
update.yml
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
- name: Update system packages
|
||||
hosts: gitrunner
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Update system packages
|
||||
yum:
|
||||
name: "*"
|
||||
state: latest
|
||||
update_cache: yes
|
||||
|
||||
- name: Force reboot after updates (safe for Rocky Linux)
|
||||
reboot:
|
||||
msg: "System reboot after package updates"
|
||||
post_reboot_delay: 10
|
||||
timeout: 300
|
||||
Reference in New Issue
Block a user