Update update-apt-packages.yaml
This commit is contained in:
@@ -1,14 +1,10 @@
|
|||||||
---
|
---
|
||||||
- name: Update and upgrade apt packages
|
- hosts: all
|
||||||
hosts: all
|
become: true
|
||||||
|
|
||||||
tasks:
|
tasks:
|
||||||
- name: Update packages with apt
|
- name: Update apt cache and upgrade all packages
|
||||||
when: ansible_pkg_mgr == 'apt'
|
apt:
|
||||||
ansible.builtin.apt:
|
update_cache: yes
|
||||||
update_cache: true
|
upgrade: dist
|
||||||
|
autoremove: yes
|
||||||
- name: Upgrade packages with apt
|
autoclean: yes
|
||||||
when: ansible_pkg_mgr == 'apt'
|
|
||||||
ansible.builtin.apt:
|
|
||||||
upgrade: dist
|
|
||||||
Reference in New Issue
Block a user