Add update-host
This commit is contained in:
21
update-host
Normal file
21
update-host
Normal file
@@ -0,0 +1,21 @@
|
||||
---
|
||||
- hosts: all
|
||||
become: yes
|
||||
|
||||
tasks:
|
||||
- name: Apt Update
|
||||
ansible.builtin.apt:
|
||||
update_cache: true
|
||||
|
||||
- name: Apt Upgrade
|
||||
ansible.builtin.apt:
|
||||
upgrade: yes
|
||||
update_cache: yes
|
||||
|
||||
- name: Apt Autoremove
|
||||
ansible.builtin.apt:
|
||||
autoremove: yes
|
||||
|
||||
- name: Apt Autoclean
|
||||
ansible.builtin.apt:
|
||||
autoclean: true
|
||||
Reference in New Issue
Block a user