linux maintenance
This commit is contained in:
parent
72c9b164b6
commit
199218371e
1 changed files with 15 additions and 0 deletions
15
linux-maintenance.yaml
Normal file
15
linux-maintenance.yaml
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
---
|
||||||
|
- hosts: "{{ target_hosts }}"
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Update apt cache
|
||||||
|
ansible.builtin.apt:
|
||||||
|
update_cache: true
|
||||||
|
|
||||||
|
- name: Upgrade all packages
|
||||||
|
ansible.builtin.apt:
|
||||||
|
upgrade: dist
|
||||||
|
autoremove: true
|
||||||
|
|
||||||
|
- name: Reboot machine
|
||||||
|
ansible.builtin.reboot:
|
||||||
Loading…
Reference in a new issue