update_os.yml
Added new file
This commit is contained in:
parent
bc530d8d7e
commit
178fc56b6a
1 changed files with 12 additions and 0 deletions
12
update_os.yml
Normal file
12
update_os.yml
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
- hosts: all
|
||||||
|
become: true
|
||||||
|
tasks:
|
||||||
|
- name: Update apt cache (Debian/Ubuntu)
|
||||||
|
apt:
|
||||||
|
update_cache: yes
|
||||||
|
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
|
||||||
|
|
||||||
|
- name: Upgrade all packages (Debian/Ubuntu)
|
||||||
|
apt:
|
||||||
|
upgrade: dist
|
||||||
|
when: ansible_distribution == "Ubuntu" or ansible_distribution == "Debian"
|
||||||
Loading…
Reference in a new issue